From: Jeff Mahoney Date: Tue, 2 Feb 2010 21:44:14 +0000 (-0800) Subject: hugetlb: fix section mismatches X-Git-Tag: 2.1b_release~9530 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=094e9539bd24bbe23b8e2741e903b0f3f1f85b03;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git hugetlb: fix section mismatches 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 Cc: Lee Schermerhorn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index e91b81b..2d16fa6 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1515,10 +1515,9 @@ static struct attribute_group hstate_attr_group = { .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;