Re: MODULE_LICENSE and EXPORT_SYMBOL_GPL

From: Alexander Viro (viro@math.psu.edu)
Date: Wed Oct 17 2001 - 23:03:25 EST


On Thu, 18 Oct 2001, Keith Owens wrote:

> EXPORT_SYMBOL_GPL() may only be used for new exported symbols, Linus
> has spoken. I believe the phrase involved killer penguins with
> chainsaws for anybody who changed existing exported interfaces.

... and if somebody thinks that replacing

int foo(void *bar);
plus
EXPORT_SYMBOL(foo);

with

int __foo(void *bar, int baz);
static int foo(void *bar)
{
        return __foo(bar, 0);
}
plus
EXPORT_SYMBOL_GPL(__foo);

is going to save you from aforementioned killer penguins, keep in mind
that there are worse and slower ways to go and you might not like learning
them first-hand.

                                Al "have pincer, will travel" Viro

-
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 : Tue Oct 23 2001 - 21:00:19 EST