[LTP] [PATCH 1/3] tools/sparse: Add static check

Petr Vorel pvorel@suse.cz
Wed Nov 24 08:12:57 CET 2021


Hi Richie,

> This was adapted from Sparse's inbuilt check_duplicates (-Wdecl). The
> original check appears to print a warning whenever a symbol is
> non-static, but has no prototype. It appears to work because library
> symbols are usually declared first in a header file and then again
> with their definition in a source file.

> The LTP version also checks for the various library prefixes, but
> should otherwise be the same.
LGTM, thanks!

Kind regards,
Petr


More information about the ltp mailing list