From: Mel Gorman <mel@csn.ul.ie>
To: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: npiggin@suse.de, agl@us.ibm.com, akpm@linux-foundation.org,
linux-mm@kvack.org
Subject: Re: [RFC PATCH 1/4] mm: remove mm_init compilation dependency on CONFIG_DEBUG_MEMORY_INIT
Date: Thu, 10 Jul 2008 17:35:52 +0100 [thread overview]
Message-ID: <20080710163552.GE6664@csn.ul.ie> (raw)
In-Reply-To: <20080708180542.GC14908@us.ibm.com>
On (08/07/08 11:05), Nishanth Aravamudan didst pronounce:
> 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>
>
Acked-by: Mel Gorman <mel@csn.ul.ie>
> diff --git a/mm/Makefile b/mm/Makefile
> index f54232d..cbe29d2 100644
> --- a/mm/Makefile
> +++ b/mm/Makefile
> @@ -11,7 +11,7 @@ obj-y := bootmem.o filemap.o mempool.o oom_kill.o fadvise.o \
> maccess.o page_alloc.o page-writeback.o pdflush.o \
> readahead.o swap.o truncate.o vmscan.o \
> prio_tree.o util.o mmzone.o vmstat.o backing-dev.o \
> - page_isolation.o $(mmu-y)
> + page_isolation.o mm_init.o $(mmu-y)
>
> obj-$(CONFIG_PAGE_WALKER) += pagewalk.o
> obj-$(CONFIG_BOUNCE) += bounce.o
> @@ -26,7 +26,6 @@ obj-$(CONFIG_TMPFS_POSIX_ACL) += shmem_acl.o
> obj-$(CONFIG_TINY_SHMEM) += tiny-shmem.o
> obj-$(CONFIG_SLOB) += slob.o
> obj-$(CONFIG_SLAB) += slab.o
> -obj-$(CONFIG_DEBUG_MEMORY_INIT) += mm_init.o
> obj-$(CONFIG_SLUB) += slub.o
> obj-$(CONFIG_MEMORY_HOTPLUG) += memory_hotplug.o
> obj-$(CONFIG_FS_XIP) += filemap_xip.o
> diff --git a/mm/mm_init.c b/mm/mm_init.c
> index ce445ca..eaf0d3b 100644
> --- a/mm/mm_init.c
> +++ b/mm/mm_init.c
> @@ -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 */
>
> --
> Nishanth Aravamudan <nacc@us.ibm.com>
> IBM Linux Technology Center
>
--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-07-10 16:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-08 18:03 [RFC PATCH 0/4] -mm-only hugetlb updates Nishanth Aravamudan
2008-07-08 18:05 ` [RFC PATCH 1/4] mm: remove mm_init compilation dependency on CONFIG_DEBUG_MEMORY_INIT Nishanth Aravamudan
2008-07-08 18:06 ` [RFC PATCH 2/4] mm: create /sys/kernel/mm Nishanth Aravamudan
2008-07-08 18:07 ` [RFC PATCH 3/4] hugetlb: hang off of /sys/kernel/mm rather than /sys/kernel Nishanth Aravamudan
2008-07-08 18:08 ` [RFC PATCH 4/4] hugetlb: remove CONFIG_SYSFS dependency Nishanth Aravamudan
2008-07-10 17:39 ` [RFC PATCH 3/4] hugetlb: hang off of /sys/kernel/mm rather than /sys/kernel Mel Gorman
2008-07-10 17:24 ` [RFC PATCH 2/4] mm: create /sys/kernel/mm Mel Gorman
2008-07-10 16:35 ` Mel Gorman [this message]
2008-07-08 18:13 ` [RFC PATCH 0/4] -mm-only hugetlb updates Nishanth Aravamudan
2008-07-10 13:11 ` Nick Piggin
2008-07-10 16:50 ` Nishanth Aravamudan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080710163552.GE6664@csn.ul.ie \
--to=mel@csn.ul.ie \
--cc=agl@us.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=nacc@us.ibm.com \
--cc=npiggin@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox