Re: hello world module no longer compiles?!

From: Keith Owens (kaos@ocs.com.au)
Date: Mon Oct 16 2000 - 09:48:42 EST


On Mon, 16 Oct 2000 15:29:53 +0100 (BST),
Tigran Aivazian <tigran@veritas.com> wrote:
>static void __exit test_exit(void)
>{
> return;
>}
>
>module_init(test_init);
>module_exit(test_exit);
># kgcc -Wall -O2 -g -c -o hello.o hello.c
>hello.c:13: parse error before `test_exit'

Add -v -E -dM to kgcc to see where it is reading its headers from and
to see what the macros are defined to. __exit should be defined to a
noop in a module.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:09 EST