From: Claudiu Ghioc Date: Mon, 4 Mar 2013 10:46:15 +0000 (+0200) Subject: hugetlb: fix sparse warning for hugetlb_register_node X-Git-Tag: v3.11-rc1~89^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3cd8b44fa84262d04142f2ad3e17e74741ba451a;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: Jiri Kosina --- 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];