kbuild: introduce blacklisting in modpost
authorSam Ravnborg <sam@ravnborg.org>
Sun, 13 Jan 2008 21:21:31 +0000 (22:21 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:40 +0000 (23:14 +0100)
commit10668220a97cb8b3fa1011a252175737ba750d51
treed188c01135c3a1d23560616336a3c19dade98296
parent5b24c0715fc4c71e60e9a684248cc49d62dfa900
kbuild: introduce blacklisting in modpost

Change the logic in modpost so we identify all the
bad combinations of sections that refer to other
sections.
Compared to the previous approach we are much less
dependent on knowledge of what additional sections
the tool chain uses and thus we can keep the false
positives low.

The implmentation is changed to use a table based
lookup and we now check all combinations in first
pass so we no longer need separate passes for init
and exit sections.

Tested that the same warnings are generated for
an allyesconfig build without CONFIG_HOTPLUG.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Adrian Bunk <bunk@kernel.org>
scripts/mod/modpost.c