On 4/26/2010 10:26, Rathi, Somya wrote:
I am trying to add a kernel module to the IVI-kernel. I am getting following
error in compiling one of the kernel src file.
compile with KDIR=/lib/modules/2.6.31.6-44.1.moblin2-ivi/build/
make -C /lib/modules/2.6.31.6-44.1.moblin2-ivi/build/
M=/home/moblin/somya/can104-102/can4linux-3.5.2 TARGET=CAN104 modules
make[1]: Entering directory `/usr/src/kernels/2.6.31.6-44.1.moblin2-ivi'
CC [M] /home/moblin/somya/can104-102/can4linux-3.5.2/core.o
In file included from include/linux/init.h:4,
from /home/moblin/somya/can104-102/can4linux-3.5.2/core.c:231:
include/linux/compiler.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘struct’
/home/moblin/somya/can104-102/can4linux-3.5.2/core.c: In function ‘can_init’:
/home/moblin/somya/can104-102/can4linux-3.5.2/core.c:486: warning: label
‘out_class’ defined but not used
make[2]: *** [/home/moblin/somya/can104-102/can4linux-3.5.2/core.o] Error 1
make[1]: *** [_module_/home/moblin/somya/can104-102/can4linux-3.5.2] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.31.6-44.1.moblin2-ivi'
make: *** [all] Error 2
unfortunately you forgot to attach the source code of your module... so it's pretty hard for us to help you out figuring out how your code
does not work with the kernel...
_______________________________________________
Moblin dev Mailing List
[email protected]
To manage or unsubscribe from this mailing list visit:
http://lists.moblin.org/listinfo/dev or your user account on http://moblin.org
once logged in.
For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists