linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: Declare hugetlb_sysfs_add_hstate __meminit
@ 2011-07-25 23:19 Thomas Renninger
  2011-07-26  0:52 ` David Rientjes
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Renninger @ 2011-07-25 23:19 UTC (permalink / raw)
  To: linux-mm; +Cc: mgorman, Thomas Renninger, majordomo

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
---
 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;
-- 
1.7.3.4

--
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-26 19:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-25 23:19 [PATCH] mm: Declare hugetlb_sysfs_add_hstate __meminit Thomas Renninger
2011-07-26  0:52 ` David Rientjes
2011-07-26 19:57   ` Thomas Renninger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox