Skip to content

Commit

Permalink
mm: cleanup register_node()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yasuaki Ishimatsu authored and Linus Torvalds committed Dec 12, 2012
1 parent 212a0a6 commit fa26437
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/base/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion include/linux/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fa26437

Please sign in to comment.