diff options
author | Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com> | 2012-12-11 16:02:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-11 17:22:27 -0800 |
commit | fa264375175a382621c5344a6508e02ec4d1c3c0 (patch) | |
tree | e0641d14919f69c39db1e53353e3b5e21c1b455f | |
parent | 212a0a6f28dda0a1e732d20d57abb465750d473c (diff) | |
download | linux-3.10-fa264375175a382621c5344a6508e02ec4d1c3c0.tar.gz linux-3.10-fa264375175a382621c5344a6508e02ec4d1c3c0.tar.bz2 linux-3.10-fa264375175a382621c5344a6508e02ec4d1c3c0.zip |
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 <isimatu.yasuaki@jp.fujitsu.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/base/node.c | 2 | ||||
-rw-r--r-- | include/linux/node.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index 4282e82d9f2..fffed4c96bb 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 10316f1c68a..2115ad5d6f1 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); |