metag: export _metag_da_present and cpu_2_hwthread_id
authorJames Hogan <james.hogan@imgtec.com>
Tue, 26 Mar 2013 14:10:42 +0000 (14:10 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Wed, 27 Mar 2013 14:37:52 +0000 (14:37 +0000)
Export the symbols _metag_da_present and cpu_2_hwthread_id to modules
(GPL only) to allow the imgdafs file system to be built as a module.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/kernel/da.c
arch/metag/kernel/setup.c

index 52aabb658fde805210ddd18ac1f0d424eb68d12a..a35dbed6fffab9542383caa2219255314d195846 100644 (file)
@@ -5,12 +5,14 @@
  */
 
 
+#include <linux/export.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <asm/da.h>
 #include <asm/metag_mem.h>
 
 bool _metag_da_present;
+EXPORT_SYMBOL_GPL(_metag_da_present);
 
 int __init metag_da_probe(void)
 {
index 879246170aecb7443123f734bed77c050b88eba5..4f5726f1a55b1ddb2c7ce28f15bab5190b423303 100644 (file)
@@ -124,6 +124,7 @@ struct machine_desc *machine_desc __initdata;
 u8 cpu_2_hwthread_id[NR_CPUS] __read_mostly = {
        [0 ... NR_CPUS-1] = BAD_HWTHREAD_ID
 };
+EXPORT_SYMBOL_GPL(cpu_2_hwthread_id);
 
 /*
  * Map a hardware thread ID to a Linux CPU number