problem building modules
I am trying to do "make modules" and got error messages as:
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/spinlock.h:9: invalid on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/spinlock.h:9: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/spinlock.h:10:`printk_R_ver_str' declared as function returnning a function
extern int printk(const char * fmt, ...)
__attribute__ (( format (printf, 1, 2)));
Obviously, it does not make sense to generate the error messages. So, I guess there are some macros to make the line 9 look different. I copied the compile line and changed the "-c" to "-E" and redirect the preprocess output to a file then look at the corresponding line. It is:
extern int printk_R_ver_str(1b7d4074)(const char *fmt, ...)
__attribute__((format (printf, 1, 2)));
Now, the error messages make sense.
My question is what I did wrong to make the preprocess to generate such result? How can I fix this problem?
Thanks in advance!