summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2010-02-03 00:44:14 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2010-02-03 05:11:22 +0300
commit094e9539bd24bbe23b8e2741e903b0f3f1f85b03 (patch)
tree1b217c0351db28589fc164d5bf570d61c173bf5c /mm
parent03eac7bb882a75e6ee5705288f7ec36ad2e7d0d5 (diff)
downloadlinux-094e9539bd24bbe23b8e2741e903b0f3f1f85b03.tar.xz
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')
-rw-r--r--mm/hugetlb.c7
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;