error with compiler.h when switching from 2.6.32 to 2.6.36

0 views
Skip to first unread message

Derek Nielson

unread,
Nov 17, 2010, 2:35:47 PM11/17/10
to uta...@googlegroups.com
I am switching from Kernel 2.6.32 to Kernel 2.6.36.  When I compile a module (that previously worked with the old kernel) against the new kernel I am getting an error that I don't understand.  

Here is the error:

In file included from include/linux/string.h:10,
                 from /mnt/local/home/derekn/linux-omap-2.6/arch/arm/include/asm/uaccess.h:14,
                 from /home/my_module/my_module.c:24:
include/linux/compiler.h:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’
make[2]: *** [/home/my_module/my_module.o] Error 1
make[1]: *** [_module_/home/my_module] Error 2
make[1]: Leaving directory `/mnt/local/home/linux-omap-2.6'
make: *** [release] Error 2


Does anyone know how to fix this error?

AJ ONeal

unread,
Nov 18, 2010, 11:42:50 AM11/18/10
to uta...@googlegroups.com
Perhaps a better place for this question would be the main kernel mailing list?

Definitely post back once you figure it out though.

AJ ONeal
Reply all
Reply to author
Forward
0 new messages