summaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.h
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2019-08-01 09:06:57 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-14 01:10:18 +0900
commit15bfc2348d549b44bdca266747f71c0d54bc0e5f (patch)
tree202a96f42677731f49a85b5c06c9308c3b5af8f6 /scripts/mod/modpost.h
parentd45331b00ddb179e291766617259261c112db872 (diff)
downloadlinux-15bfc2348d549b44bdca266747f71c0d54bc0e5f.tar.gz
linux-15bfc2348d549b44bdca266747f71c0d54bc0e5f.tar.bz2
linux-15bfc2348d549b44bdca266747f71c0d54bc0e5f.zip
modpost: check for static EXPORT_SYMBOL* functions
This patch adds a check to warn about static EXPORT_SYMBOL* functions during the modpost. In most of the cases, a static symbol marked for exporting is an odd combination that should be fixed either by deleting the exporting mark or by removing the static attribute and adding the appropriate declaration to headers. This check could help to detect the following problems: 1. 550113d4e9f5 ("i2c: add newly exported functions to the header, too") 2. 54638c6eaf44 ("net: phy: make exported variables non-static") 3. 98ef2046f28b ("mm: remove the exporting of totalram_pages") 4. 73df167c819e ("s390/zcrypt: remove the exporting of ap_query_configuration") 5. a57caf8c527f ("sunrpc/cache: remove the exporting of cache_seq_next") 6. e4e4730698c9 ("crypto: skcipher - remove the exporting of skcipher_walk_next") 7. 14b4c48bb1ce ("gve: Remove the exporting of gve_probe") 8. 9b79ee9773a8 ("scsi: libsas: remove the exporting of sas_wait_eh") 9. ... The build time impact is very limited and is almost at the unnoticeable level (< 1 sec). Acked-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Denis Efremov <efremov@linux.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/mod/modpost.h')
0 files changed, 0 insertions, 0 deletions