diff options
author | Jeff Mahoney <jeffm@suse.com> | 2010-02-02 13:44:14 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-02 18:11:22 -0800 |
commit | 094e9539bd24bbe23b8e2741e903b0f3f1f85b03 (patch) | |
tree | 1b217c0351db28589fc164d5bf570d61c173bf5c /mm/hugetlb.c | |
parent | 03eac7bb882a75e6ee5705288f7ec36ad2e7d0d5 (diff) | |
download | linux-094e9539bd24bbe23b8e2741e903b0f3f1f85b03.tar.gz linux-094e9539bd24bbe23b8e2741e903b0f3f1f85b03.tar.bz2 linux-094e9539bd24bbe23b8e2741e903b0f3f1f85b03.zip |
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>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r-- | mm/hugetlb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index e91b81b63670..2d16fa6b8c2d 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; |