diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-02-12 02:02:02 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-02-14 00:22:10 -0500 |
commit | ecc14e8cf7f7865b8b7a9e1796c0b18cbb477d2f (patch) | |
tree | e08f3698527ca223883a8e49b02548823141cec3 /arch/sh | |
parent | 96f2fc006c281cbd5702a409c57d1f1549cde1fe (diff) |
sh: Symbol exports for trapped I/O.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/io_trapped.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sh/kernel/io_trapped.c b/arch/sh/kernel/io_trapped.c index 227547bae548..86a665d92201 100644 --- a/arch/sh/kernel/io_trapped.c +++ b/arch/sh/kernel/io_trapped.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/mm.h> | 13 | #include <linux/mm.h> |
14 | #include <linux/bitops.h> | 14 | #include <linux/bitops.h> |
15 | #include <linux/vmalloc.h> | 15 | #include <linux/vmalloc.h> |
16 | #include <linux/module.h> | ||
16 | #include <asm/system.h> | 17 | #include <asm/system.h> |
17 | #include <asm/mmu_context.h> | 18 | #include <asm/mmu_context.h> |
18 | #include <asm/uaccess.h> | 19 | #include <asm/uaccess.h> |
@@ -23,9 +24,11 @@ | |||
23 | 24 | ||
24 | #ifdef CONFIG_HAS_IOPORT | 25 | #ifdef CONFIG_HAS_IOPORT |
25 | LIST_HEAD(trapped_io); | 26 | LIST_HEAD(trapped_io); |
27 | EXPORT_SYMBOL_GPL(trapped_io); | ||
26 | #endif | 28 | #endif |
27 | #ifdef CONFIG_HAS_IOMEM | 29 | #ifdef CONFIG_HAS_IOMEM |
28 | LIST_HEAD(trapped_mem); | 30 | LIST_HEAD(trapped_mem); |
31 | EXPORT_SYMBOL_GPL(trapped_mem); | ||
29 | #endif | 32 | #endif |
30 | static DEFINE_SPINLOCK(trapped_lock); | 33 | static DEFINE_SPINLOCK(trapped_lock); |
31 | 34 | ||
@@ -86,6 +89,7 @@ int __init register_trapped_io(struct trapped_io *tiop) | |||
86 | pr_warning("unable to install trapped io filter\n"); | 89 | pr_warning("unable to install trapped io filter\n"); |
87 | return -1; | 90 | return -1; |
88 | } | 91 | } |
92 | EXPORT_SYMBOL_GPL(register_trapped_io); | ||
89 | 93 | ||
90 | void __iomem *match_trapped_io_handler(struct list_head *list, | 94 | void __iomem *match_trapped_io_handler(struct list_head *list, |
91 | unsigned long offset, | 95 | unsigned long offset, |
@@ -113,6 +117,7 @@ void __iomem *match_trapped_io_handler(struct list_head *list, | |||
113 | spin_unlock_irq(&trapped_lock); | 117 | spin_unlock_irq(&trapped_lock); |
114 | return NULL; | 118 | return NULL; |
115 | } | 119 | } |
120 | EXPORT_SYMBOL_GPL(match_trapped_io_handler); | ||
116 | 121 | ||
117 | static struct trapped_io *lookup_tiop(unsigned long address) | 122 | static struct trapped_io *lookup_tiop(unsigned long address) |
118 | { | 123 | { |