summaryrefslogtreecommitdiff
path: root/mm/mm_init.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2025-04-07 21:21:14 +0200
committerArnd Bergmann <arnd@arndb.de>2025-04-30 21:57:09 +0200
commit8530ea3c9b9747faba46ed3a59ad103b894f1189 (patch)
tree48be68cdb68d52cede37f67e20adf0acd52fa05b /mm/mm_init.c
parent2555d4c6872085584bda55d1c2bc048cae5fb0b3 (diff)
Kbuild: remove structleak gcc plugin
gcc-12 and higher support the -ftrivial-auto-var-init= flag, after gcc-8 is the minimum version, this is half of the supported ones, and the vast majority of the versions that users are actually likely to have, so it seems like a good time to stop having the fallback plugin implementation Older toolchains are still able to build kernels normally without this plugin, but won't be able to use variable initialization.. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'mm/mm_init.c')
-rw-r--r--mm/mm_init.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/mm/mm_init.c b/mm/mm_init.c
index 9659689b8ace..a1362d2c19e4 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -2668,12 +2668,6 @@ static void __init report_meminit(void)
stack = "all(pattern)";
else if (IS_ENABLED(CONFIG_INIT_STACK_ALL_ZERO))
stack = "all(zero)";
- else if (IS_ENABLED(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL))
- stack = "byref_all(zero)";
- else if (IS_ENABLED(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF))
- stack = "byref(zero)";
- else if (IS_ENABLED(CONFIG_GCC_PLUGIN_STRUCTLEAK_USER))
- stack = "__user(zero)";
else
stack = "off";