summaryrefslogtreecommitdiff
path: root/scripts/package
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-09-30 18:52:04 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2023-10-01 14:55:30 +0900
commitf177cd0c15fcc7bdbb68d8d1a3166dead95314c8 (patch)
tree54f7a78f45a40faae7478fb6e1429878ee13911c /scripts/package
parent15e86643d5b6df08ebd65c7b5aa607fd2ed2d9d1 (diff)
modpost: Don't let "driver"s reference .exit.*
Drivers must not reference functions marked with __exit as these likely are not available when the code is built-in. There are few creative offenders uncovered for example in ARCH=amd64 allmodconfig builds. So only trigger the section mismatch warning for W=1 builds. The dual rule that drivers must not reference .init.* is implemented since commit 0db252452378 ("modpost: don't allow *driver to reference .init.*") which however missed that .exit.* should be handled in the same way. Thanks to Masahiro Yamada and Arnd Bergmann who gave valuable hints to find this improvement. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/package')
0 files changed, 0 insertions, 0 deletions