mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
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>
This commit is contained in:
parent
a47a126ad5
commit
5e9426abe2
2 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <linux/init.h>
|
||||
#include "internal.h"
|
||||
|
||||
#ifdef CONFIG_DEBUG_MEMORY_INIT
|
||||
int __meminitdata mminit_loglevel;
|
||||
|
||||
/* The zonelists are simply reported, validation is manual. */
|
||||
|
@ -132,3 +133,4 @@ static __init int set_mminit_loglevel(char *str)
|
|||
return 0;
|
||||
}
|
||||
early_param("mminit_loglevel", set_mminit_loglevel);
|
||||
#endif /* CONFIG_DEBUG_MEMORY_INIT */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue