Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 094e9539 authored by Jeff Mahoney's avatar Jeff Mahoney Committed by Linus Torvalds
Browse files

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: default avatarJeff Mahoney <jeffm@suse.com>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 03eac7bb
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1515,8 +1515,7 @@ static struct attribute_group hstate_attr_group = {
	.attrs = hstate_attrs,
};

static int __init hugetlb_sysfs_add_hstate(struct hstate *h,
				struct kobject *parent,
static int hugetlb_sysfs_add_hstate(struct hstate *h, struct kobject *parent,
				    struct kobject **hstate_kobjs,
				    struct attribute_group *hstate_attr_group)
{