OSDN Git Service

kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 30 Jul 2019 15:59:00 +0000 (00:59 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:51:47 +0000 (10:51 +0200)
commit1c335cd18ced56dfe9470375c34199635da9dd9c
tree0eab49ccbd206b97aadf497cb92d56b6ebf93084
parent4f62e065a5c628d8e8bad58f3f5245dfe7f504dd
kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

[ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ]

KBUILD_EXTRA_SYMBOLS makes sense only when building external modules.
Moreover, the modpost sets 'external_module' if the -e option is given.

I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...)
while I was here.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/Makefile.modpost