Re: [Patch] kbuild: fix headers_check.pl

Arnd Bergmann
2009-06-05T12:31:52Z

On Friday 05 June 2009, Amerigo Wang wrote:
>
> >
> > I don't think we really need that distinction here, the old
> > text applies to both.
>
> Even for function declarations?

Yes. Any use of 'extern' in a kernel header file by definition
refers to a symbol that is defined in the kernel and therefore
not accessibly in user space. It is the same problem for
variables and functions, with the complication that leaving
out the 'extern' statement on a function declaration will
hide it from this check, while leaving it out on a variable
declaration turns it into a definition.