summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-04-20 13:34:28 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-08-14 12:28:42 -0400
commit74db638db34bf0fd85c3810a5fc3067bcb05e180 (patch)
tree1f61dd417d48c53b8f77075dd0e78ed0e5fbdfe0
parent32564addce998c354f58e14dd2f0235520c131d0 (diff)
mm: Move lib/show_mem.c to mm/
show_mem.c is really mm specific, and the next patch in the series is going to require mm/slab.h, so let's move it before doing more work on it. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--lib/Makefile2
-rw-r--r--mm/Makefile2
-rw-r--r--mm/show_mem.c (renamed from lib/show_mem.c)0
3 files changed, 2 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 779891013569..38fe450118e7 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -30,7 +30,7 @@ endif
lib-y := ctype.o string.o vsprintf.o cmdline.o \
rbtree.o radix-tree.o timerqueue.o xarray.o \
maple_tree.o idr.o extable.o irq_regs.o argv_split.o \
- flex_proportions.o ratelimit.o show_mem.o \
+ flex_proportions.o ratelimit.o \
is_single_threaded.o plist.o decompress.o kobject_uevent.o \
earlycpio.o seq_buf.o siphash.o dec_and_lock.o \
nmi_backtrace.o win_minmax.o memcat_p.o \
diff --git a/mm/Makefile b/mm/Makefile
index e29afc890cde..e2ecfe0eaebe 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -53,7 +53,7 @@ obj-y := filemap.o mempool.o oom_kill.o fadvise.o \
mm_init.o percpu.o slab_common.o \
compaction.o \
interval_tree.o list_lru.o workingset.o \
- debug.o gup.o mmap_lock.o $(mmu-y)
+ debug.o gup.o mmap_lock.o show_mem.o $(mmu-y)
# Give 'page_alloc' its own module-parameter namespace
page-alloc-y := page_alloc.o
diff --git a/lib/show_mem.c b/mm/show_mem.c
index 1485c87be935..1485c87be935 100644
--- a/lib/show_mem.c
+++ b/mm/show_mem.c