From 2eb88648aff9547d1c10df841d1ac61ac2369df6 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Wed, 24 Feb 2021 23:52:54 +0900 Subject: [PATCH] Kbuild: re-enable TRIM_UNUSED_KSYMS under the condition of !COMPILE_TEST This option is useful for embedded systems, and acutally used by the MIPS generic_defconfig. Commit 1518c633df78 ("kbuild: allow symbol whitelisting with TRIM_UNUSED_KSYMS") also states this is used by Android Generic Kernel Image. I guess somebody will start complaining. Disable this only for COMPILE_TEST so it is hidden for all{yes,mod}config. Fixes: 5cf0fd591f2e ("Kbuild: disable TRIM_UNUSED_KSYMS option") Signed-off-by: Masahiro Yamada --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index 2ff0b5a50736..135e2129e04b 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -2273,7 +2273,7 @@ config MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS config TRIM_UNUSED_KSYMS bool "Trim unused exported kernel symbols" - depends on BROKEN + depends on !COMPILE_TEST help The kernel and some modules make many symbols available for other modules to use via EXPORT_SYMBOL() and variants. Depending -- 2.27.0