diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-03-26 10:10:42 -0400 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-03-27 10:37:52 -0400 |
commit | e605ff8c1a785f49801ad903846f62e609f954f7 (patch) | |
tree | 966b1ea781b83346b78789c38eecc9d9c4decb39 | |
parent | 876d6dcdf26a2e860801ec61195e580d03f7b204 (diff) |
metag: export _metag_da_present and cpu_2_hwthread_id
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>
-rw-r--r-- | arch/metag/kernel/da.c | 2 | ||||
-rw-r--r-- | arch/metag/kernel/setup.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/metag/kernel/da.c b/arch/metag/kernel/da.c index 52aabb658fde..a35dbed6fffa 100644 --- a/arch/metag/kernel/da.c +++ b/arch/metag/kernel/da.c | |||
@@ -5,12 +5,14 @@ | |||
5 | */ | 5 | */ |
6 | 6 | ||
7 | 7 | ||
8 | #include <linux/export.h> | ||
8 | #include <linux/io.h> | 9 | #include <linux/io.h> |
9 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
10 | #include <asm/da.h> | 11 | #include <asm/da.h> |
11 | #include <asm/metag_mem.h> | 12 | #include <asm/metag_mem.h> |
12 | 13 | ||
13 | bool _metag_da_present; | 14 | bool _metag_da_present; |
15 | EXPORT_SYMBOL_GPL(_metag_da_present); | ||
14 | 16 | ||
15 | int __init metag_da_probe(void) | 17 | int __init metag_da_probe(void) |
16 | { | 18 | { |
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c index 879246170aec..4f5726f1a55b 100644 --- a/arch/metag/kernel/setup.c +++ b/arch/metag/kernel/setup.c | |||
@@ -124,6 +124,7 @@ struct machine_desc *machine_desc __initdata; | |||
124 | u8 cpu_2_hwthread_id[NR_CPUS] __read_mostly = { | 124 | u8 cpu_2_hwthread_id[NR_CPUS] __read_mostly = { |
125 | [0 ... NR_CPUS-1] = BAD_HWTHREAD_ID | 125 | [0 ... NR_CPUS-1] = BAD_HWTHREAD_ID |
126 | }; | 126 | }; |
127 | EXPORT_SYMBOL_GPL(cpu_2_hwthread_id); | ||
127 | 128 | ||
128 | /* | 129 | /* |
129 | * Map a hardware thread ID to a Linux CPU number | 130 | * Map a hardware thread ID to a Linux CPU number |