Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: remove mm_init compilation dependency on CONFIG_DEBUG_MEMORY_INIT

Towards the end of putting all core mm initialization in mm_init.c, I
plan on putting the creation of a mm kobject in a function in that file.
However, the file is currently only compiled if CONFIG_DEBUG_MEMORY_INIT
is set. Remove this dependency, but put the code under an #ifdef on the
same config option. This should result in no functional changes.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Nishanth Aravamudan and committed by
Linus Torvalds
5e9426ab a47a126a

+3 -2
+1 -2
mm/Makefile
··· 11 11 maccess.o page_alloc.o page-writeback.o pdflush.o \ 12 12 readahead.o swap.o truncate.o vmscan.o \ 13 13 prio_tree.o util.o mmzone.o vmstat.o backing-dev.o \ 14 - page_isolation.o $(mmu-y) 14 + page_isolation.o mm_init.o $(mmu-y) 15 15 16 16 obj-$(CONFIG_PROC_PAGE_MONITOR) += pagewalk.o 17 17 obj-$(CONFIG_BOUNCE) += bounce.o ··· 26 26 obj-$(CONFIG_TINY_SHMEM) += tiny-shmem.o 27 27 obj-$(CONFIG_SLOB) += slob.o 28 28 obj-$(CONFIG_SLAB) += slab.o 29 - obj-$(CONFIG_DEBUG_MEMORY_INIT) += mm_init.o 30 29 obj-$(CONFIG_SLUB) += slub.o 31 30 obj-$(CONFIG_MEMORY_HOTPLUG) += memory_hotplug.o 32 31 obj-$(CONFIG_FS_XIP) += filemap_xip.o
+2
mm/mm_init.c
··· 9 9 #include <linux/init.h> 10 10 #include "internal.h" 11 11 12 + #ifdef CONFIG_DEBUG_MEMORY_INIT 12 13 int __meminitdata mminit_loglevel; 13 14 14 15 /* The zonelists are simply reported, validation is manual. */ ··· 133 132 return 0; 134 133 } 135 134 early_param("mminit_loglevel", set_mminit_loglevel); 135 + #endif /* CONFIG_DEBUG_MEMORY_INIT */