On Monday 02 May 2011 16:53:44 Marek Lindner wrote:
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
[,,,,]
#include <linux/version.h> /* LINUX_VERSION_CODE */ -#include "bat_sysfs.h" /* struct bat_attribute */
This is necessary for kernels older than 2.6.24
make -C /home/batman/build_test/linux-build/linux-2.6.23/ REVISION=v2011.1.0-81-g89079ae-dirty M=/home/batman/batman-adv PWD=/home/batman/batman-adv -j 1 modules make[1]: Entering directory `/home/batman/build_test/linux-build/linux-2.6.23' CC [M] /home/batman/batman-adv/aggregation.o In file included from /home/batman/batman-adv/main.h:117, from /home/batman/batman-adv/aggregation.c:22: /home/batman/batman-adv/compat.h: In function ‘bat_wrapper_show’: /home/batman/batman-adv/compat.h:112: error: dereferencing pointer to incomplete type /home/batman/batman-adv/compat.h:112: warning: type defaults to ‘int’ in declaration of ‘__mptr’ /home/batman/batman-adv/compat.h:112: warning: initialization from incompatible pointer type /home/batman/batman-adv/compat.h:112: error: invalid use of undefined type ‘struct bat_attribute’ /home/batman/batman-adv/compat.h:114: error: dereferencing pointer to incomplete type /home/batman/batman-adv/compat.h:115: error: dereferencing pointer to incomplete type /home/batman/batman-adv/compat.h: In function ‘bat_wrapper_store’: /home/batman/batman-adv/compat.h:124: error: dereferencing pointer to incomplete type /home/batman/batman-adv/compat.h:124: warning: type defaults to ‘int’ in declaration of ‘__mptr’ /home/batman/batman-adv/compat.h:124: warning: initialization from incompatible pointer type /home/batman/batman-adv/compat.h:124: error: invalid use of undefined type ‘struct bat_attribute’ /home/batman/batman-adv/compat.h:126: error: dereferencing pointer to incomplete type /home/batman/batman-adv/compat.h:127: error: dereferencing pointer to incomplete type make[2]: *** [/home/batman/batman-adv/aggregation.o] Error 1 make[1]: *** [_module_/home/batman/batman-adv] Error 2 make[1]: Leaving directory `/home/batman/build_test/linux-build/linux-2.6.23' make: *** [all] Error 2