Re: [PATCH] Generic dead function optimisation

From: Olaf Titz (olaf@bigred.inka.de)
Date: Mon Apr 24 2000 - 11:05:02 EST


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



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:09 EST