diff options
author | 2019-07-18 15:57:43 -0700 | |
---|---|---|
committer | 2019-07-18 17:08:06 -0700 | |
commit | 8d595c4c0f768f19db043d378b22e98405f9fd47 (patch) | |
tree | eccb33a2b0438a50beed7ffd6f7ec3f068dffc2b /drivers/base | |
parent | drivers/base/memory: use "unsigned long" for block ids (diff) | |
download | linux-8d595c4c0f768f19db043d378b22e98405f9fd47.tar.gz linux-8d595c4c0f768f19db043d378b22e98405f9fd47.tar.bz2 linux-8d595c4c0f768f19db043d378b22e98405f9fd47.zip |
mm: make register_mem_sect_under_node() static
It is only used internally.
Link: http://lkml.kernel.org/r/20190614100114.311-4-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/node.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index beec80649b33..27391f1e8f60 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c @@ -753,7 +753,8 @@ static int __ref get_nid_for_pfn(unsigned long pfn) } /* register memory section under specified node if it spans that node */ -int register_mem_sect_under_node(struct memory_block *mem_blk, void *arg) +static int register_mem_sect_under_node(struct memory_block *mem_blk, + void *arg) { int ret, nid = *(int *)arg; unsigned long pfn, sect_start_pfn, sect_end_pfn; |