From: Yasuaki Ishimatsu Date: Wed, 12 Dec 2012 00:02:52 +0000 (-0800) Subject: mm: cleanup register_node() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa264375175a382621c5344a6508e02ec4d1c3c0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm: cleanup register_node() register_node() is defined as extern in include/linux/node.h. But the function is only called from register_one_node() in driver/base/node.c. So the patch defines register_node() as static. Signed-off-by: Yasuaki Ishimatsu Acked-by: David Rientjes Acked-by: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/base/node.c b/drivers/base/node.c index 4282e82d9f26..fffed4c96bb3 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -277,7 +277,7 @@ static void node_device_release(struct device *dev) * * Initialize and register the node device. */ -int register_node(struct node *node, int num, struct node *parent) +static int register_node(struct node *node, int num, struct node *parent) { int error; diff --git a/include/linux/node.h b/include/linux/node.h index 10316f1c68a9..2115ad5d6f19 100644 --- a/include/linux/node.h +++ b/include/linux/node.h @@ -30,7 +30,6 @@ struct memory_block; extern struct node *node_devices[]; typedef void (*node_registration_func_t)(struct node *); -extern int register_node(struct node *, int, struct node *); extern void unregister_node(struct node *node); #ifdef CONFIG_NUMA extern int register_one_node(int nid);