On Wed, Jul 11, 2007 at 04:31:19PM -0700, Greg Kroah-Hartman wrote:
This seems like a regression. We go from having an empty inline
function that gets optimised away to 0 to having a function call to a
trivial function. And on any architecture that *does* define this,
(unless I misunderstand the GCC manual), we still include the weak
definition, thus wasting space.
I don't think this is a good use of weak functions. It's perfectly
normal to have header files filled with empty functions. They're even
good documentation for what an architecture might want to fill in,
rather than invent their own mechanism for doing something.
--
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
-