after trying to compile a pretty stanard lkm I wrote I got this error ( among many others from included files )
Code:
In file included from /lib/modules/2.6.17.2/build/include/linux/rwsem.h:27,
from /lib/modules/2.6.17.2/build/include/asm/semaphore.h:42,
from /lib/modules/2.6.17.2/build/include/linux/sched.h:20,
from /lib/modules/2.6.17.2/build/include/linux/module.h:10,
from ftpsniff.c:3:
/lib/modules/2.6.17.2/build/include/asm/rwsem.h: In function '__down_read':
/lib/modules/2.6.17.2/build/include/asm/rwsem.h:105: error: expected ':' or ')' before 'KBUILD_BASENAME'
/lib/modules/2.6.17.2/build/include/asm/rwsem.h: In function '__down_write':
/lib/modules/2.6.17.2/build/include/asm/rwsem.h:157: error: expected ':' or ')' before 'KBUILD_BASENAME'
/lib/modules/2.6.17.2/build/include/asm/rwsem.h: In function '__up_read':
/lib/modules/2.6.17.2/build/include/asm/rwsem.h:194: error: expected ':' or ')' before 'KBUILD_BASENAME'
/lib/modules/2.6.17.2/build/include/asm/rwsem.h:188: warning: unused variable 'tmp'
/lib/modules/2.6.17.2/build/include/asm/rwsem.h: In function '__up_write':
/lib/modules/2.6.17.2/build/include/asm/rwsem.h:220: error: expected ':' or ')' before 'KBUILD_BASENAME'
/lib/modules/2.6.17.2/build/include/asm/rwsem.h: In function '__downgrade_write':
/lib/modules/2.6.17.2/build/include/asm/rwsem.h:245: error: expected ':' or ')' before 'KBUILD_BASENAME'
I googled the first line about __down_read and it seems many other projects had this problem in their bug reports and other people asking about it but no one had a solution. It seems to only hapeen in 2.6.15 > kernels and I am running 2.6.17.2.
Has anyone seen this error or is there some config option i missed that would cause this?
thanks