summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-08-12 09:47:43 -1000
committerAndrew Morton <akpm@linux-foundation.org>2026-08-20 18:24:47 -0700
commitf73be537f4b3f639defa2cf60f692dd2b64badbc (patch)
treea2217b2ede1a26b2a703e6ab3d4c578153a11cfd /mm
parent1f44c50165a3f63f4b31fb8b459ebfdc98fc144b (diff)
downloadlinux-next-f73be537f4b3f639defa2cf60f692dd2b64badbc.tar.gz
linux-next-f73be537f4b3f639defa2cf60f692dd2b64badbc.zip
percpu: drop CONFIG_DEBUG_FORCE_WEAK_PER_CPU
alpha requires percpu variables in modules to be defined as weak so that the compiler generates GOT based external references for them. This puts two extra restrictions on percpu variable definitions. The symbol must be globally unique even when static and a static percpu variable can't be defined inside a function. DEBUG_FORCE_WEAK_PER_CPU exists to give generic code build coverage for these restrictions without building for alpha. MEM_ALLOC_PROFILING defines a static percpu counter at each allocation call site and thus can't be built with weak percpu definitions, so it depends on !DEBUG_FORCE_WEAK_PER_CPU. As allmodconfig enables DEBUG_FORCE_WEAK_PER_CPU, this knocks MEM_ALLOC_PROFILING out of allmodconfig build coverage. allmodconfig coverage for MEM_ALLOC_PROFILING is worth more than build coverage for restrictions which only matter to alpha module builds. Drop DEBUG_FORCE_WEAK_PER_CPU. Restriction violations will now show up only on alpha builds. Link: https://lore.kernel.org/178656406317.2437052.7257990869957704195@slm.duckdns.org Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Suren Baghdasaryan <surenb@google.com> Acked-by: Gabriele Monaco <gmonaco@redhat.com> [include/rv/da_monitor.h] Cc: Dennis Zhou <dennis@kernel.org> Cc: Kent Overstreet <kent.overstreet@linux.dev> Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/Kconfig.debug1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug
index 5737a504efbb..15dca19dd07d 100644
--- a/mm/Kconfig.debug
+++ b/mm/Kconfig.debug
@@ -326,7 +326,6 @@ config MEM_ALLOC_PROFILING
default n
depends on MMU
depends on PROC_FS
- depends on !DEBUG_FORCE_WEAK_PER_CPU
select CODE_TAGGING
select PAGE_EXTENSION
select SLAB_OBJ_EXT