Skip to content
Commit 7d95680d authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

scripts/misc-check: check unnecessary #include <linux/export.h> when W=1



Another issue with <linux/export.h> is that it is sometimes included
even when EXPORT_SYMBOL() is not used at all.

Some headers (e.g. include/linux/linkage.h>) cannot be fixed for now
for the reason described in the previous commit.

This commit adds a warning for *.c files that include <linux/export.h>
but do not use EXPORT_SYMBOL() when the kernel is built with W=1.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent a934a57a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment