]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacd43a9b804133ec8e0e141ef94cbea6b56ce6ea
treef4a9d7f73a92d540ebf4a53e36ed19d160e2a4de
parent3e3623b7f5a587db94b08d5d249aef5be335047c
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