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

metag: topology: export 'cpu_core_map'

We need to export 'cpu_core_map' since the topology_core_cpumask macro
refers to it and is used by certain kernel modules.

Found in allmodconfig build:
ERROR: "cpu_core_map" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] undefined!

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>

authored by

Chen Gang and committed by
James Hogan
40979d32 1d61cf12

+1
+1
arch/metag/kernel/topology.c
··· 19 19 DEFINE_PER_CPU(struct cpuinfo_metag, cpu_data); 20 20 21 21 cpumask_t cpu_core_map[NR_CPUS]; 22 + EXPORT_SYMBOL(cpu_core_map); 22 23 23 24 static cpumask_t cpu_coregroup_map(unsigned int cpu) 24 25 {