processor.h in 2.1.65

Richard Gooch (rgooch@atnf.CSIRO.AU)
Fri, 21 Nov 1997 13:34:50 +1100


Hi, all. Is there any reason why the #include <asm/processor.h>
which appears in linux/sched.h cannot be placed inside
#ifdef __KERNEL__ ?

I have a userland source file which includes linux/sched.h and I get
the following messages:

/usr/include/asm/processor.h:157: warning: `struct task_struct' declared inside parameter list
/usr/include/asm/processor.h:157: warning: its scope is only this definition or declaration,
/usr/include/asm/processor.h:157: warning: which is probably not what you want.

Regards,

Richard....