From: Andrew Morton <akpm@linux-foundation.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Linux MM <linux-mm@kvack.org>,
Zhang Zhen <zhenzhang.zhang@huawei.com>
Subject: Re: linux-next: Tree for Aug 14 (mm/memory_hotplug.c and drivers/base/memory.c)
Date: Thu, 14 Aug 2014 13:12:59 -0700 [thread overview]
Message-ID: <20140814131259.0e56829123ba1123bbe1685a@linux-foundation.org> (raw)
In-Reply-To: <53ECCF7E.2090305@infradead.org>
On Thu, 14 Aug 2014 08:02:22 -0700 Randy Dunlap <rdunlap@infradead.org> wrote:
> On 08/13/14 22:27, Stephen Rothwell wrote:
> > Hi all,
> >
> > Please do not add code intended for v3.18 until after v3.17-rc1 is
> > released.
> >
> > Changes since 20140813:
> >
>
> on x86_64:
>
> drivers/built-in.o: In function `show_zones_online_to':
> memory.c:(.text+0x13f306): undefined reference to `test_pages_in_a_zone'
>
> in drivers/base/memory.c
>
> when CONFIG_MEMORY_HOTREMOVE is not enabled.
>
> The function implementation in mm/memory_hotplug.c is only built if
> CONFIG_MEMORY_HOTREMOVE is enabled.
Thanks. This way, I suppose.
--- a/drivers/base/memory.c~memory-hotplug-add-sysfs-zones_online_to-attribute-fix-2
+++ a/drivers/base/memory.c
@@ -373,6 +373,7 @@ static ssize_t show_phys_device(struct d
return sprintf(buf, "%d\n", mem->phys_device);
}
+#ifdef CONFIG_MEMORY_HOTREMOVE
static int __zones_online_to(unsigned long end_pfn,
struct page *first_page, unsigned long nr_pages)
{
@@ -432,12 +433,13 @@ static ssize_t show_zones_online_to(stru
return sprintf(buf, "%s\n", zone->name);
}
+static DEVICE_ATTR(zones_online_to, 0444, show_zones_online_to, NULL);
+#endif
static DEVICE_ATTR(phys_index, 0444, show_mem_start_phys_index, NULL);
static DEVICE_ATTR(state, 0644, show_mem_state, store_mem_state);
static DEVICE_ATTR(phys_device, 0444, show_phys_device, NULL);
static DEVICE_ATTR(removable, 0444, show_mem_removable, NULL);
-static DEVICE_ATTR(zones_online_to, 0444, show_zones_online_to, NULL);
/*
* Block size attribute stuff
@@ -584,7 +586,9 @@ static struct attribute *memory_memblk_a
&dev_attr_state.attr,
&dev_attr_phys_device.attr,
&dev_attr_removable.attr,
+#ifdef CONFIG_MEMORY_HOTREMOVE
&dev_attr_zones_online_to.attr,
+#endif
NULL
};
--
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>
prev parent reply other threads:[~2014-08-14 20:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 5:27 linux-next: Tree for Aug 14 Stephen Rothwell
2014-08-14 15:02 ` linux-next: Tree for Aug 14 (mm/memory_hotplug.c and drivers/base/memory.c) Randy Dunlap
2014-08-14 20:12 ` Andrew Morton [this message]
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=20140814131259.0e56829123ba1123bbe1685a@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-next@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=sfr@canb.auug.org.au \
--cc=zhenzhang.zhang@huawei.com \
/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