Re: [PATCH] Generic dead function optimisation

Olaf Titz (olaf@bigred.inka.de)
Mon, 24 Apr 2000 18:05:02 +0200


> > static int do_something(void) {...}
> > EXPORT_SYMBOL(do_something);
> I would prefer that such a case be perfect illegal..

Seconded.

> It violates the Principle of Least Surprise

Not only that, it violates longstanding C semantics.

"static" => "can not be referenced outside this compilation unit"
"EXPORT_SYMBOL" => "can be referenced outside this compilation unit"

It's simply a contradiction.

Olaf

-
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/