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

Commit fa264375 authored by Yasuaki Ishimatsu's avatar Yasuaki Ishimatsu Committed by Linus Torvalds
Browse files

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: default avatarYasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Acked-by: default avatarKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 212a0a6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;

+0 −1
Original line number Diff line number Diff line
@@ -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);