Re: static modules_{init,exit} functions in pre3-2

From: Jeff Garzik (jgarzik@mandrakesoft.mandrakesoft.com)
Date: Mon Jul 03 2000 - 01:32:16 EST


On Sat, 1 Jul 2000, Adam J. Richter wrote:
> linux-2.4.0test3-pre2 adds "-Werror" to the default C compiler
> flags, which is forcing the elimination of lots of unused variables
> and functions, which I think is great. It also is causing compilations
> of modules to abort if their module_{init,exit} functions are declared
> static.

Declaring them static is correct. The compiler warning is wrong. See
many posts on this subject right after test3-pre2 was released,
including a post from myself which includes a workaround for the
compiler warning.

        Jeff

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



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:11 EST