diff options
author | David Hildenbrand <david@redhat.com> | 2019-07-18 18:57:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-07-18 20:08:06 -0400 |
commit | 8d595c4c0f768f19db043d378b22e98405f9fd47 (patch) | |
tree | eccb33a2b0438a50beed7ffd6f7ec3f068dffc2b | |
parent | 90ec010fe0d690665852d6bac21643e9ae7affd8 (diff) |
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>
-rw-r--r-- | drivers/base/node.c | 3 | ||||
-rw-r--r-- | include/linux/node.h | 7 |
2 files changed, 2 insertions, 8 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) | |||
753 | } | 753 | } |
754 | 754 | ||
755 | /* register memory section under specified node if it spans that node */ | 755 | /* register memory section under specified node if it spans that node */ |
756 | int register_mem_sect_under_node(struct memory_block *mem_blk, void *arg) | 756 | static int register_mem_sect_under_node(struct memory_block *mem_blk, |
757 | void *arg) | ||
757 | { | 758 | { |
758 | int ret, nid = *(int *)arg; | 759 | int ret, nid = *(int *)arg; |
759 | unsigned long pfn, sect_start_pfn, sect_end_pfn; | 760 | unsigned long pfn, sect_start_pfn, sect_end_pfn; |
diff --git a/include/linux/node.h b/include/linux/node.h index 548c226966a2..4866f32a02d8 100644 --- a/include/linux/node.h +++ b/include/linux/node.h | |||
@@ -137,8 +137,6 @@ static inline int register_one_node(int nid) | |||
137 | extern void unregister_one_node(int nid); | 137 | extern void unregister_one_node(int nid); |
138 | extern int register_cpu_under_node(unsigned int cpu, unsigned int nid); | 138 | extern int register_cpu_under_node(unsigned int cpu, unsigned int nid); |
139 | extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid); | 139 | extern int unregister_cpu_under_node(unsigned int cpu, unsigned int nid); |
140 | extern int register_mem_sect_under_node(struct memory_block *mem_blk, | ||
141 | void *arg); | ||
142 | extern void unregister_memory_block_under_nodes(struct memory_block *mem_blk); | 140 | extern void unregister_memory_block_under_nodes(struct memory_block *mem_blk); |
143 | 141 | ||
144 | extern int register_memory_node_under_compute_node(unsigned int mem_nid, | 142 | extern int register_memory_node_under_compute_node(unsigned int mem_nid, |
@@ -170,11 +168,6 @@ static inline int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) | |||
170 | { | 168 | { |
171 | return 0; | 169 | return 0; |
172 | } | 170 | } |
173 | static inline int register_mem_sect_under_node(struct memory_block *mem_blk, | ||
174 | void *arg) | ||
175 | { | ||
176 | return 0; | ||
177 | } | ||
178 | static inline void unregister_memory_block_under_nodes(struct memory_block *mem_blk) | 171 | static inline void unregister_memory_block_under_nodes(struct memory_block *mem_blk) |
179 | { | 172 | { |
180 | } | 173 | } |