Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

Tejun Heo 752d4f37 bd6709a9

+1 -3
-2
arch/x86/include/asm/numa.h
··· 61 61 #ifdef CONFIG_NUMA 62 62 extern void __cpuinit numa_set_node(int cpu, int node); 63 63 extern void __cpuinit numa_clear_node(int cpu); 64 - extern void __init numa_init_array(void); 65 64 extern void __init init_cpu_to_node(void); 66 65 extern void __cpuinit numa_add_cpu(int cpu); 67 66 extern void __cpuinit numa_remove_cpu(int cpu); 68 67 #else /* CONFIG_NUMA */ 69 68 static inline void numa_set_node(int cpu, int node) { } 70 69 static inline void numa_clear_node(int cpu) { } 71 - static inline void numa_init_array(void) { } 72 70 static inline void init_cpu_to_node(void) { } 73 71 static inline void numa_add_cpu(int cpu) { } 74 72 static inline void numa_remove_cpu(int cpu) { }
+1 -1
arch/x86/mm/numa.c
··· 535 535 * as the number of CPUs is not known yet. We round robin the existing 536 536 * nodes. 537 537 */ 538 - void __init numa_init_array(void) 538 + static void __init numa_init_array(void) 539 539 { 540 540 int rr, i; 541 541