* [PATCH] hugetlb: Fix section mismatches
@ 2010-01-30 20:19 Jeff Mahoney
0 siblings, 0 replies; only message in thread
From: Jeff Mahoney @ 2010-01-30 20:19 UTC (permalink / raw)
To: Lee.Schermerhorn@hp.com; +Cc: Linux Kernel Mailing List, Andrew Morton
hugetlb_sysfs_add_hstate is called by hugetlb_register_node directly
during init and also indirectly via sysfs after init.
This patch removes the __init tag from hugetlb_sysfs_add_hstate.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Cc: Lee.Schermerhorn@hp.com <Lee.Schermerhorn@hp.com>
---
mm/hugetlb.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1515,10 +1515,9 @@ static struct attribute_group hstate_att
.attrs = hstate_attrs,
};
-static int __init hugetlb_sysfs_add_hstate(struct hstate *h,
- struct kobject *parent,
- struct kobject **hstate_kobjs,
- struct attribute_group *hstate_attr_group)
+static int 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;
--
Jeff Mahoney
SuSE Labs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-30 20:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 20:19 [PATCH] hugetlb: Fix section mismatches Jeff Mahoney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox