diff options
author | Claudiu Ghioc <claudiughioc@gmail.com> | 2013-03-04 12:46:15 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-03-07 15:14:17 +0100 |
commit | 3cd8b44fa84262d04142f2ad3e17e74741ba451a (patch) | |
tree | 90c5216a0c86b82cb671aaf7aec5ef087cf9b2b7 /mm | |
parent | df63447f1a4402d7d9c6a9cd1c39a6d6766452d1 (diff) | |
download | op-kernel-dev-3cd8b44fa84262d04142f2ad3e17e74741ba451a.zip op-kernel-dev-3cd8b44fa84262d04142f2ad3e17e74741ba451a.tar.gz |
hugetlb: fix sparse warning for hugetlb_register_node
Removed the following sparse warnings:
* mm/hugetlb.c:1764:6: warning: symbol
'hugetlb_unregister_node' was not declared.
Should it be static?
* mm/hugetlb.c:1808:6: warning: symbol
'hugetlb_register_node' was not declared.
Should it be static?
Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/hugetlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 4f3ea0b..b336690 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -1763,7 +1763,7 @@ static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp) * Unregister hstate attributes from a single node device. * No-op if no hstate attributes attached. */ -void hugetlb_unregister_node(struct node *node) +static void hugetlb_unregister_node(struct node *node) { struct hstate *h; struct node_hstate *nhs = &node_hstates[node->dev.id]; @@ -1807,7 +1807,7 @@ static void hugetlb_unregister_all_nodes(void) * Register hstate attributes for a single node device. * No-op if attributes already registered. */ -void hugetlb_register_node(struct node *node) +static void hugetlb_register_node(struct node *node) { struct hstate *h; struct node_hstate *nhs = &node_hstates[node->dev.id]; |