2005-05-17 15:47:58 UTC
Hi,
When trying to build the 2.4 kernel module (for a 2.4.19 kernel) I was getting parsing errors:
gcc -I/lib/modules/2.4.19-4a/build/include -I../defs -O2 -Wall -D__KERNEL__ -c universeII.c
universeII.c:1539: parse error before `uni_cleanup_module'
universeII.c:1540: warning: return type defaults to `int'
universeII.c: In function `uni_cleanup_module':
universeII.c:1589: warning: control reaches end of non-void function
universeII.c: At top level:
...
Adding the following include fixed things (at least so that it compiles):
#include <linux/init.h>