cpumask: remove unused cpu_mask_all
PATCH 8/17 cpumask: remove unused cpu_mask_all
It's only defined for NR_CPUS > BITS_PER_LONG; cpu_all_mask is always defined (and const).
Signed-off-by Rusty Russell <[email protected]>
--- include/linux/cpumask.h | 3 --- init/main.c | 5 ----- 2 files changed, 8 deletions(-)
include/linux/cpumask.h +0 -3
@@ -331,9 +331,6 @@ static inline const struct cpumask *get_ [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \ [BITS_TO_LONGS(NR_CPUS)-1] = CPU_MASK_LAST_WORD \ } } - -/* cpu_mask_all is in init/main.c */ -extern cpumask_t cpu_mask_all;#endif
init/main.c +0 -5
@@ -358,11 +358,6 @@ static inline void smp_prepare_cpus(unsistatic inline void smp_prepare_cpus (unsigned int maxcpus) { }#else - -#if NR_CPUS >BITS_PER_LONG -cpumask_t cpu_mask_all__read_mostly =CPU_MASK_ALL ; -EXPORT_SYMBOL (cpu_mask_all); -#endif /* Setup number of possible processor ids */ int nr_cpu_ids__read_mostly =NR_CPUS ;