[PATCH v2 11/13] alloc_tag: Move to mm/
From: Brendan Jackman
Date: Mon Jun 22 2026 - 06:05:33 EST
This is logically mm code. Moving to mm/ allows access to mm/internal.h
Signed-off-by: Brendan Jackman <jackmanb@xxxxxxxxxx>
---
MAINTAINERS | 2 +-
lib/Makefile | 1 -
mm/Makefile | 1 +
{lib => mm}/alloc_tag.c | 0
4 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 65bd4328fe056..5d426b79b8fe7 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -16713,7 +16713,7 @@ S: Maintained
F: Documentation/mm/allocation-profiling.rst
F: include/linux/alloc_tag.h
F: include/linux/pgalloc_tag.h
-F: lib/alloc_tag.c
+F: mm/alloc_tag.c
MEMORY CONTROLLER DRIVERS
M: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
diff --git a/lib/Makefile b/lib/Makefile
index f33a24bf1c19a..44f6538533a97 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -197,7 +197,6 @@ obj-$(CONFIG_OF_RECONFIG_NOTIFIER_ERROR_INJECT) += \
obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o
obj-$(CONFIG_CODE_TAGGING) += codetag.o
-obj-$(CONFIG_MEM_ALLOC_PROFILING) += alloc_tag.o
lib-$(CONFIG_GENERIC_BUG) += bug.o
diff --git a/mm/Makefile b/mm/Makefile
index eff9f9e7e061c..4fc713867b9bd 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -147,3 +147,4 @@ obj-$(CONFIG_SHRINKER_DEBUG) += shrinker_debug.o
obj-$(CONFIG_EXECMEM) += execmem.o
obj-$(CONFIG_TMPFS_QUOTA) += shmem_quota.o
obj-$(CONFIG_LAZY_MMU_MODE_KUNIT_TEST) += tests/lazy_mmu_mode_kunit.o
+obj-$(CONFIG_MEM_ALLOC_PROFILING) += alloc_tag.o
diff --git a/lib/alloc_tag.c b/mm/alloc_tag.c
similarity index 100%
rename from lib/alloc_tag.c
rename to mm/alloc_tag.c
--
2.54.0