aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mm_init.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2025-04-07 19:21:14 +0000
committerArnd Bergmann <[email protected]>2025-04-30 19:57:09 +0000
commit8530ea3c9b9747faba46ed3a59ad103b894f1189 (patch)
tree48be68cdb68d52cede37f67e20adf0acd52fa05b /mm/mm_init.c
parentarm64: drop binutils version checks (diff)
downloadkernel-8530ea3c9b9747faba46ed3a59ad103b894f1189.tar.gz
kernel-8530ea3c9b9747faba46ed3a59ad103b894f1189.zip
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 <[email protected]>
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";