]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:50:14 +0000 (10:50 +0200)
commitf295b9ab64394e45aa2c35362b24012cb0e17074
tree31fcb362d2d3cafa40999fc6e234c8affe3b53e0
parentddc47dc28e163a27fe93ff0619b9b354388025af
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