The offending line 27 is:
#include <linux/sched.h>
Could some kind kernel guru point to a source which explains the error of
my ways?
In file included from lm78.c:13:
/usr/src/linux/include/linux/kernel.h:71: parse error before `int'
/usr/src/linux/include/linux/mount.h: In function `mntput':
In file included from /usr/src/linux/include/linux/dcache.h:7,
from /usr/src/linux/include/linux/fs.h:19,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from lm78.c:27:
/usr/src/linux/include/linux/mount.h:46: warning: implicit declaration of function `printk_R1b7d4074'
/usr/src/linux/include/asm/semaphore.h: At top level:
In file included from /usr/src/linux/include/linux/fs.h:199,
from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from lm78.c:27:
/usr/src/linux/include/asm/semaphore.h:99: parse error before `void'
/usr/src/linux/include/asm/semaphore.h:100: parse error before `int'
/usr/src/linux/include/asm/semaphore.h:101: parse error before `int'
/usr/src/linux/include/asm/semaphore.h:102: parse error before `void'
/usr/src/linux/include/asm/semaphore.h:104: parse error before `void'
/usr/src/linux/include/asm/semaphore.h:105: parse error before `int'
/usr/src/linux/include/asm/semaphore.h:106: parse error before `int'
/usr/src/linux/include/asm/semaphore.h:107: parse error before `void'
In file included from /usr/src/linux/include/linux/capability.h:17,
from /usr/src/linux/include/linux/binfmts.h:5,
from /usr/src/linux/include/linux/sched.h:9,
from lm78.c:27:
/usr/src/linux/include/linux/fs.h:962: parse error before `long'
/usr/src/linux/include/linux/fs.h:963: parse error before `long'
In file included from /usr/src/linux/include/linux/sched.h:10,
from lm78.c:27:
/usr/src/linux/include/linux/personality.h:66: parse error before `long'
In file included from /usr/src/linux/include/linux/sched.h:25,
from lm78.c:27:
/usr/src/linux/include/linux/sem.h:124: parse error before `long'
/usr/src/linux/include/linux/sem.h:125: parse error before `long'
/usr/src/linux/include/linux/sem.h:126: parse error before `long'
In file included from lm78.c:27:
/usr/src/linux/include/linux/sched.h:152: parse error before `void'
/usr/src/linux/include/linux/sched.h:569: parse error before `long'
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc':
In file included from /usr/src/linux/include/asm/io.h:108,
from lm78.c:31:
/usr/src/linux/include/linux/vmalloc.h:35: `boot_cpu_data_R0657d037' undeclared (first use this function)
/usr/src/linux/include/linux/vmalloc.h:35: (Each undeclared identifier is reported only once
/usr/src/linux/include/linux/vmalloc.h:35: for each function it appears in.)
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc_dma':
/usr/src/linux/include/linux/vmalloc.h:44: `boot_cpu_data_R0657d037' undeclared (first use this function)
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc_32':
/usr/src/linux/include/linux/vmalloc.h:53: `boot_cpu_data_R0657d037' undeclared (first use this function)
lm78.c: At top level:
lm78.c:49: warning: initialization from incompatible pointer type
lm78.c: In function `lm78_get_info':
lm78.c:68: warning: implicit declaration of function `sprintf_R3c2c5af5'
lm78.c: In function `init_module':
lm78.c:156: warning: implicit declaration of function `proc_register'
lm78.c: In function `cleanup_module':
lm78.c:195: warning: implicit declaration of function `proc_unregister'
make: *** [lm78.o] Error 1
-- Shaw Carruthers - shaw@shawc.freeserve.co.uk London SW14 7JW UK This is not a sig( with homage to Magritte).- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/