Skip to content

Commit 752d4f3

Browse files
committed
x86, NUMA: Make numa_init_array() static
numa_init_array() no longer has users outside of numa.c. Make it static. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com>
1 parent bd6709a commit 752d4f3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/x86/include/asm/numa.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,12 @@ static inline int numa_cpu_node(int cpu)
6161
#ifdef CONFIG_NUMA
6262
extern void __cpuinit numa_set_node(int cpu, int node);
6363
extern void __cpuinit numa_clear_node(int cpu);
64-
extern void __init numa_init_array(void);
6564
extern void __init init_cpu_to_node(void);
6665
extern void __cpuinit numa_add_cpu(int cpu);
6766
extern void __cpuinit numa_remove_cpu(int cpu);
6867
#else /* CONFIG_NUMA */
6968
static inline void numa_set_node(int cpu, int node) { }
7069
static inline void numa_clear_node(int cpu) { }
71-
static inline void numa_init_array(void) { }
7270
static inline void init_cpu_to_node(void) { }
7371
static inline void numa_add_cpu(int cpu) { }
7472
static inline void numa_remove_cpu(int cpu) { }

arch/x86/mm/numa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static int __init numa_register_memblks(struct numa_meminfo *mi)
535535
* as the number of CPUs is not known yet. We round robin the existing
536536
* nodes.
537537
*/
538-
void __init numa_init_array(void)
538+
static void __init numa_init_array(void)
539539
{
540540
int rr, i;
541541

0 commit comments

Comments
 (0)