metag: topology: export 'cpu_core_map'
authorChen Gang <gang.chen.5i5j@gmail.com>
Thu, 19 Dec 2013 08:03:40 +0000 (16:03 +0800)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 19 Dec 2013 11:36:13 +0000 (11:36 +0000)
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>
arch/metag/kernel/topology.c

index bec3dec..4ba5957 100644 (file)
@@ -19,6 +19,7 @@
 DEFINE_PER_CPU(struct cpuinfo_metag, cpu_data);
 
 cpumask_t cpu_core_map[NR_CPUS];
+EXPORT_SYMBOL(cpu_core_map);
 
 static cpumask_t cpu_coregroup_map(unsigned int cpu)
 {