Skip to content

Commit 8d595c4

Browse files
David Hildenbrandtorvalds
authored andcommitted
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>
1 parent 90ec010 commit 8d595c4

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎drivers/base/node.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,8 @@ static int __ref get_nid_for_pfn(unsigned long pfn)
753753
}
754754

755755
/* 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)
757758
{
758759
int ret, nid = *(int *)arg;
759760
unsigned long pfn, sect_start_pfn, sect_end_pfn;

‎include/linux/node.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ static inline int register_one_node(int nid)
137137
extern void unregister_one_node(int nid);
138138
extern int register_cpu_under_node(unsigned int cpu, unsigned int nid);
139139
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);
142140
extern void unregister_memory_block_under_nodes(struct memory_block *mem_blk);
143141

144142
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)
170168
{
171169
return 0;
172170
}
173-
static inline int register_mem_sect_under_node(struct memory_block *mem_blk,
174-
void *arg)
175-
{
176-
return 0;
177-
}
178171
static inline void unregister_memory_block_under_nodes(struct memory_block *mem_blk)
179172
{
180173
}

0 commit comments

Comments
 (0)