aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/kernel/io_trapped.c5
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
25LIST_HEAD(trapped_io); 26LIST_HEAD(trapped_io);
27EXPORT_SYMBOL_GPL(trapped_io);
26#endif 28#endif
27#ifdef CONFIG_HAS_IOMEM 29#ifdef CONFIG_HAS_IOMEM
28LIST_HEAD(trapped_mem); 30LIST_HEAD(trapped_mem);
31EXPORT_SYMBOL_GPL(trapped_mem);
29#endif 32#endif
30static DEFINE_SPINLOCK(trapped_lock); 33static 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}
92EXPORT_SYMBOL_GPL(register_trapped_io);
89 93
90void __iomem *match_trapped_io_handler(struct list_head *list, 94void __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}
120EXPORT_SYMBOL_GPL(match_trapped_io_handler);
116 121
117static struct trapped_io *lookup_tiop(unsigned long address) 122static struct trapped_io *lookup_tiop(unsigned long address)
118{ 123{