Skip to contentSkip to conversation

kbuild: remove EXPERT and !COMPILE_TEST guarding from TRIM_UNUSED_KSYMS

PATCH New Masahiro Yamada 1 participant 1 message Feb 15, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: remove EXPERT and !COMPILE_TEST guarding from TRIM_UNUSED_KSYMS

This reverts the following two commits:

- a555bdd0c58c ("Kbuild: enable TRIM_UNUSED_KSYMS again, with some guarding")
- 5cf0fd591f2e ("Kbuild: disable TRIM_UNUSED_KSYMS option")

Commit 5e9e95cc9148 ("kbuild: implement CONFIG_TRIM_UNUSED_KSYMS without recursion") solved the build time issue.

---

 kernel/module/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
kernel/module/Kconfig +1 -2
index 0ea1b2970a23..c3ced519e14b 100644
@@ -362,8 +362,7 @@ config MODPROBE_PATH
 	  userspace can still load modules explicitly).
 
 config TRIM_UNUSED_KSYMS
-	bool "Trim unused exported kernel symbols" if EXPERT
-	depends on !COMPILE_TEST
+	bool "Trim unused exported kernel symbols"
 	help
 	  The kernel and some modules make many symbols available for
 	  other modules to use via EXPORT_SYMBOL() and variants. Depending
Signature · 1 line
2.40.1