Re: basic module bug

From: Evgeny Polyakov (johnpol@2ka.mipt.ru)
Date: Sat Aug 25 2001 - 06:21:39 EST


Hello.

On Sat, 25 Aug 2001 00:59:57 -0500
Bob McElrath <mcelrath@draal.physics.wisc.edu> wrote:

BM> both egcs 2.91.66 and redhat's gcc 2.96-85 barf on it:

BM> In file included from /usr/src/linux/include/asm/semaphore.h:11,
BM> from /usr/src/linux/include/linux/fs.h:198,
<...>
BM> used for global register variable

BM> What have I done wrong?

How do you compile this module?
I've just trying to do this with the following command and all is OK:
gcc ./test.c -c -o ./test.o -D__KERNEL__ -DMODULE.

BM> Thanks,
BM> -- Bob

---
WBR. //s0mbre
-
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/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:17 EST