Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cd8b44f authored by Claudiu Ghioc's avatar Claudiu Ghioc Committed by Jiri Kosina
Browse files

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: default avatarClaudiu Ghioc <claudiu.ghioc@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent df63447f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1763,7 +1763,7 @@ static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp)
 * Unregister hstate attributes from a single node device.
 * Unregister hstate attributes from a single node device.
 * No-op if no hstate attributes attached.
 * 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 hstate *h;
	struct node_hstate *nhs = &node_hstates[node->dev.id];
	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.
 * Register hstate attributes for a single node device.
 * No-op if attributes already registered.
 * 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 hstate *h;
	struct node_hstate *nhs = &node_hstates[node->dev.id];
	struct node_hstate *nhs = &node_hstates[node->dev.id];