kbuild: whitelist false section mismatch warnings
authorSam Ravnborg <sam@mars.ravnborg.org>
Sun, 26 Feb 2006 21:18:11 +0000 (22:18 +0100)
committerSam Ravnborg <sam@mars.ravnborg.org>
Sun, 26 Feb 2006 21:18:11 +0000 (22:18 +0100)
commit4c8fbca5836aaafd165aa8732d92ab5d4f3a6841
treef4a9d7f73a92d540ebf4a53e36ed19d160e2a4de
parentcc006288fb538005a14ca4297250abbf0beeb0b9
kbuild: whitelist false section mismatch warnings

In several cases the section mismatch check triggered false warnings.
Following patch introduce a whitelist to 'false positives' are not warned of.
Two types of patterns are recognised:
1) Typical case when a module parameter is _initdata
2) When a function pointer is assigned to a driver structure

In both patterns we rely on the actual name of the variable assigned

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/mod/modpost.c