Hi Arnd,

> I'm currently experimenting with a patch that adds -Wmissing-declaration to
> the normal kernel CFLAGS for everyone, and fixing up the warnings I get with
> that on ARM.
>
> Are you looking at all the powerpc specific code? If we can catch all the
> existing warnings for some of the major architectures, we can hopefully
> enable this in the mainline kernel at some point so we don't need sparse
> for it any more.

At the moment I'm just trying to squash sparse warnings on powerpc. This
particular catch came from making something static via a dodgy python
script and then Andrew finding it was EXPORTed. Removing the EXPORT
threw the warning - so it's a bit more complex than just a sparse
warning.

I think powerpc has the missing prototype warnings enabled and -Werror
as well.

Andrew Donellan was telling me there's a Coccinelle script that looks
for things that are both static and EXPORTed - maybe that's worth
following up on this point?

Regards,
Daniel

Attachment: signature.asc
Description: PGP signature

Reply via email to