Commit 094e9539bd24bbe23b8e2741e903b0f3f1f85b03
Committed by
Linus Torvalds
1 parent
03eac7bb88
Exists in
master
and in
7 other branches
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 <jeffm@suse.com> Cc: Lee Schermerhorn <lee.schermerhorn@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff
mm/hugetlb.c
... | ... | @@ -1515,10 +1515,9 @@ |
1515 | 1515 | .attrs = hstate_attrs, |
1516 | 1516 | }; |
1517 | 1517 | |
1518 | -static int __init hugetlb_sysfs_add_hstate(struct hstate *h, | |
1519 | - struct kobject *parent, | |
1520 | - struct kobject **hstate_kobjs, | |
1521 | - struct attribute_group *hstate_attr_group) | |
1518 | +static int hugetlb_sysfs_add_hstate(struct hstate *h, struct kobject *parent, | |
1519 | + struct kobject **hstate_kobjs, | |
1520 | + struct attribute_group *hstate_attr_group) | |
1522 | 1521 | { |
1523 | 1522 | int retval; |
1524 | 1523 | int hi = h - hstates; |