linux/export.h: make <linux/export.h> independent of CONFIG_MODULES
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 16 Jul 2023 10:15:54 +0000 (19:15 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 Jul 2023 15:59:32 +0000 (00:59 +0900)
commit481461f5109919babbb393d6f68002936b8e2493
tree59d664cb3b322dc16e7e8235d64f3ff30d17da35
parentc40e60f00caf18bc382215c79651777eb40f5f9d
linux/export.h: make <linux/export.h> independent of CONFIG_MODULES

Currently, all files with EXPORT_SYMBOL() are rebuilt when CONFIG_MODULES
is flipped due to <linux/export.h> depending on CONFIG_MODULES.

Now that modpost can make a final decision about export symbols,
<linux/export.h> does not need to make EXPORT_SYMBOL() no-op.
Instead, modpost can skip emitting KSYMTAB when CONFIG_MODULES is unset.

This commit will reduce the number of recompilation when CONFIG_MODULES
is toggled.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
include/linux/export.h
scripts/Makefile.modpost
scripts/mod/modpost.c