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>
This commit is contained in:
Yasuaki Ishimatsu
2012-12-11 16:02:52 -08:00
committed by Linus Torvalds
parent 212a0a6f28
commit fa26437517
2 changed files with 1 additions and 2 deletions

View File

@@ -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;