From: Badari Pulavarty <pbadari@us.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>,
Paul Mundt <lethal@linux-sh.org>
Subject: Re: mmotm 2008-09-22-01-36 uploaded (memory_hotplug)
Date: Tue, 23 Sep 2008 15:08:22 -0700 [thread overview]
Message-ID: <1222207702.6491.10.camel@badari-desktop> (raw)
In-Reply-To: <20080922125731.0ee87e05.akpm@linux-foundation.org>
On Mon, 2008-09-22 at 12:57 -0700, Andrew Morton wrote:
> On Mon, 22 Sep 2008 11:29:18 -0700
> Randy Dunlap <randy.dunlap@oracle.com> wrote:
>
> > On Mon, 22 Sep 2008 01:38:58 -0700 akpm@linux-foundation.org wrote:
> >
> > > The mm-of-the-moment snapshot 2008-09-22-01-36 has been uploaded to
> > >
> > > http://userweb.kernel.org/~akpm/mmotm/
> > >
> > > It contains the following patches against 2.6.27-rc7:
> >
> >
> > mm/built-in.o: In function `remove_memory':
> > (.text+0x497ed): multiple definition of `remove_memory'
> > arch/x86/mm/built-in.o:(.text+0x3d8): first defined here
> > make[1]: *** [vmlinux.o] Error 1
> >
> >
> > so it is defined in both mm/memory_hotplug.c and
> > arch/x86/mm/init_64.c when CONFIG_MEMORY_HOTREMOVE=y.
> >
>
> OK, thanks, it looks like people are changing things under our feet.
>
> Badari, can you please check this fix against
> mm-cleanup-to-make-remove_memory-arch-neutral.patch?
>
When I made the patch, only ppc64, ia64 and s390 had
memory_remove() support in mainline. I sent a patch against
x86 to add hotplug memory remove support. I guess you
merged Gary's patch and sh-arch patch.
I noticed that you cleaned up all these and added to -mm.
Do you want me to merge all these into a single patch and
resend it (against -mm) ? (It will look exactly the same
anyway).
Thanks,
Badari
>
> diff -puN arch/sh/mm/init.c~mm-cleanup-to-make-remove_memory-arch-neutral-fix-fix arch/sh/mm/init.c
> --- a/arch/sh/mm/init.c~mm-cleanup-to-make-remove_memory-arch-neutral-fix-fix
> +++ a/arch/sh/mm/init.c
> @@ -293,20 +293,4 @@ int memory_add_physaddr_to_nid(u64 addr)
> EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
> #endif
>
> -#ifdef CONFIG_MEMORY_HOTREMOVE
> -int remove_memory(u64 start, u64 size)
> -{
> - unsigned long start_pfn = start >> PAGE_SHIFT;
> - unsigned long end_pfn = start_pfn + (size >> PAGE_SHIFT);
> - int ret;
> -
> - ret = offline_pages(start_pfn, end_pfn, 120 * HZ);
> - if (unlikely(ret))
> - printk("%s: Failed, offline_pages() == %d\n", __func__, ret);
> -
> - return ret;
> -}
> -EXPORT_SYMBOL_GPL(remove_memory);
> -#endif
> -
> #endif /* CONFIG_MEMORY_HOTPLUG */
> diff -puN arch/x86/mm/init_64.c~mm-cleanup-to-make-remove_memory-arch-neutral-fix-fix arch/x86/mm/init_64.c
> --- a/arch/x86/mm/init_64.c~mm-cleanup-to-make-remove_memory-arch-neutral-fix-fix
> +++ a/arch/x86/mm/init_64.c
> @@ -796,24 +796,6 @@ int memory_add_physaddr_to_nid(u64 start
> EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
> #endif
>
> -#ifdef CONFIG_MEMORY_HOTREMOVE
> -int remove_memory(u64 start, u64 size)
> -{
> - unsigned long start_pfn, end_pfn;
> - unsigned long timeout = 120 * HZ;
> - int ret;
> - start_pfn = start >> PAGE_SHIFT;
> - end_pfn = start_pfn + (size >> PAGE_SHIFT);
> - ret = offline_pages(start_pfn, end_pfn, timeout);
> - if (ret)
> - goto out;
> - /* Arch-specific calls go here */
> -out:
> - return ret;
> -}
> -EXPORT_SYMBOL_GPL(remove_memory);
> -#endif /* CONFIG_MEMORY_HOTREMOVE */
> -
> #endif /* CONFIG_MEMORY_HOTPLUG */
>
> /*
> _
>
next prev parent reply other threads:[~2008-09-23 22:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-22 8:38 mmotm 2008-09-22-01-36 uploaded akpm
2008-09-22 18:19 ` mmotm 2008-09-22-01-36 uploaded (kvm) Randy Dunlap
2008-09-22 19:52 ` Andrew Morton
2008-09-22 21:58 ` Jesse Barnes
2008-09-22 21:59 ` Jesse Barnes
2008-09-22 22:10 ` Andrew Morton
2008-09-23 6:32 ` Amit Shah
2008-09-23 10:25 ` Avi Kivity
2008-09-22 18:19 ` mmotm 2008-09-22-01-36 uploaded (profiling) Randy Dunlap
2008-09-22 19:50 ` Andrew Morton
2008-09-22 18:29 ` mmotm 2008-09-22-01-36 uploaded (memory_hotplug) Randy Dunlap
2008-09-22 19:57 ` Andrew Morton
2008-09-23 22:08 ` Badari Pulavarty [this message]
2008-09-23 22:17 ` Andrew Morton
2008-09-23 23:14 ` Badari Pulavarty
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=1222207702.6491.10.camel@badari-desktop \
--to=pbadari@us.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=randy.dunlap@oracle.com \
--cc=tglx@linutronix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.