From: David Rientjes <rientjes@google.com>
To: Thomas Renninger <trenn@suse.de>
Cc: linux-mm@kvack.org, mgorman@novell.com, majordomo@kvack.org
Subject: Re: [PATCH] mm: Declare hugetlb_sysfs_add_hstate __meminit
Date: Mon, 25 Jul 2011 17:52:09 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.2.00.1107251744530.27999@chino.kir.corp.google.com> (raw)
In-Reply-To: <1311635968-10107-1-git-send-email-trenn@suse.de>
On Tue, 26 Jul 2011, Thomas Renninger wrote:
> Initially found by Mel, I just put this into a patch.
>
> Signed-off-by: Thomas Renninger <trenn@suse.de>
> Reviewed-by: Mel Gorman <mgorman@novell.com>
> CC: majordomo@kvack.org
Not sure where majordomo@kvack.org comes into this :)
> mm/hugetlb.c | 7 ++++---
> 1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/mm/hugetlb.c b/mm/hugetlb.c
> index bfcf153..2c59a0a 100644
> --- a/mm/hugetlb.c
> +++ b/mm/hugetlb.c
> @@ -1543,9 +1543,10 @@ static struct attribute_group hstate_attr_group = {
> .attrs = hstate_attrs,
> };
>
> -static int hugetlb_sysfs_add_hstate(struct hstate *h, struct kobject *parent,
> - struct kobject **hstate_kobjs,
> - struct attribute_group *hstate_attr_group)
> +static int
> +__meminit hugetlb_sysfs_add_hstate(struct hstate *h, struct kobject *parent,
> + struct kobject **hstate_kobjs,
> + struct attribute_group *hstate_attr_group)
> {
> int retval;
> int hi = h - hstates;
I'm looking at this based on the latest git; if this was intended only as
a fix for -mm, please add that tag to the subject line.
That would be right if hugetlb_register_node() didn't use it or it was
moved to meminit.text as well, and that would require that register_node()
was in the same section.
It's a bit tricky to see since hugetlb_register_node() in
drivers/base/node.c is really calling into hugetlb_register_node() from
mm/hugetlb.c.
[ And the drivers/base/node.c function has bool type for CONFIG_HUGETLBFS
and void for !CONFIG_HUGETLBFS. It can probably be changed to just be
void everywhere. ]
So, unless this is a fix for -mm, I don't think this is right.
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-07-26 0:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-25 23:19 Thomas Renninger
2011-07-26 0:52 ` David Rientjes [this message]
2011-07-26 19:57 ` Thomas Renninger
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=alpine.DEB.2.00.1107251744530.27999@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=linux-mm@kvack.org \
--cc=majordomo@kvack.org \
--cc=mgorman@novell.com \
--cc=trenn@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