From: Andrew Morton <akpm@linux-foundation.org>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: linux-kernel@vger.kernel.org,
Badari Pulavarty <pbadari@us.ibm.com>,
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: Mon, 22 Sep 2008 12:57:31 -0700 [thread overview]
Message-ID: <20080922125731.0ee87e05.akpm@linux-foundation.org> (raw)
In-Reply-To: <20080922112918.c6ea4e05.randy.dunlap@oracle.com>
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?
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-22 19:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200809220838.m8M8cwC2031790@imap1.linux-foundation.org>
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 [this message]
2008-09-23 22:08 ` Badari Pulavarty
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=20080922125731.0ee87e05.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pbadari@us.ibm.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox