diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-03-26 14:10:42 +0000 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-03-27 14:37:52 +0000 |
commit | e605ff8c1a785f49801ad903846f62e609f954f7 (patch) | |
tree | 966b1ea781b83346b78789c38eecc9d9c4decb39 /arch/metag/kernel | |
parent | 876d6dcdf26a2e860801ec61195e580d03f7b204 (diff) | |
download | op-kernel-dev-e605ff8c1a785f49801ad903846f62e609f954f7.zip op-kernel-dev-e605ff8c1a785f49801ad903846f62e609f954f7.tar.gz |
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>
Diffstat (limited to 'arch/metag/kernel')
-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 52aabb6..a35dbed 100644 --- a/arch/metag/kernel/da.c +++ b/arch/metag/kernel/da.c @@ -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) { diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c index 8792461..4f5726f 100644 --- a/arch/metag/kernel/setup.c +++ b/arch/metag/kernel/setup.c @@ -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 |