diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-11 12:28:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:17:06 -0400 |
commit | 2e811488cedddefb9d1df97c260b6048ea8ef835 (patch) | |
tree | b24390217e2c583099e311c678a88b33dbb1bd49 /arch/m68k/mm | |
parent | 437111ca381263520d23c877e55e0a83558e79da (diff) |
[PATCH] clean m68k ksyms
sun3_ksyms gone, m68k_ksyms trimmed down to exports of the assembler ones,
for sun3 added the missing exports of __ioremap() and iounmap().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m68k/mm')
-rw-r--r-- | arch/m68k/mm/kmap.c | 4 | ||||
-rw-r--r-- | arch/m68k/mm/memory.c | 8 | ||||
-rw-r--r-- | arch/m68k/mm/sun3kmap.c | 3 |
3 files changed, 13 insertions, 2 deletions
diff --git a/arch/m68k/mm/kmap.c b/arch/m68k/mm/kmap.c index f46f049d29ff..b54ef1726c55 100644 --- a/arch/m68k/mm/kmap.c +++ b/arch/m68k/mm/kmap.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * used by other architectures /Roman Zippel | 7 | * used by other architectures /Roman Zippel |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <linux/module.h> | ||
10 | #include <linux/mm.h> | 11 | #include <linux/mm.h> |
11 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
12 | #include <linux/string.h> | 13 | #include <linux/string.h> |
@@ -219,6 +220,7 @@ void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cachefla | |||
219 | 220 | ||
220 | return (void __iomem *)retaddr; | 221 | return (void __iomem *)retaddr; |
221 | } | 222 | } |
223 | EXPORT_SYMBOL(__ioremap); | ||
222 | 224 | ||
223 | /* | 225 | /* |
224 | * Unmap a ioremap()ed region again | 226 | * Unmap a ioremap()ed region again |
@@ -234,6 +236,7 @@ void iounmap(void __iomem *addr) | |||
234 | free_io_area((__force void *)addr); | 236 | free_io_area((__force void *)addr); |
235 | #endif | 237 | #endif |
236 | } | 238 | } |
239 | EXPORT_SYMBOL(iounmap); | ||
237 | 240 | ||
238 | /* | 241 | /* |
239 | * __iounmap unmaps nearly everything, so be careful | 242 | * __iounmap unmaps nearly everything, so be careful |
@@ -360,3 +363,4 @@ void kernel_set_cachemode(void *addr, unsigned long size, int cmode) | |||
360 | 363 | ||
361 | flush_tlb_all(); | 364 | flush_tlb_all(); |
362 | } | 365 | } |
366 | EXPORT_SYMBOL(kernel_set_cachemode); | ||
diff --git a/arch/m68k/mm/memory.c b/arch/m68k/mm/memory.c index a0c095e17222..0f88812822b1 100644 --- a/arch/m68k/mm/memory.c +++ b/arch/m68k/mm/memory.c | |||
@@ -4,6 +4,7 @@ | |||
4 | * Copyright (C) 1995 Hamish Macdonald | 4 | * Copyright (C) 1995 Hamish Macdonald |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <linux/module.h> | ||
7 | #include <linux/mm.h> | 8 | #include <linux/mm.h> |
8 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
9 | #include <linux/string.h> | 10 | #include <linux/string.h> |
@@ -157,9 +158,8 @@ unsigned long mm_vtop(unsigned long vaddr) | |||
157 | 158 | ||
158 | return -1; | 159 | return -1; |
159 | } | 160 | } |
160 | #endif | 161 | EXPORT_SYMBOL(mm_vtop); |
161 | 162 | ||
162 | #ifndef CONFIG_SINGLE_MEMORY_CHUNK | ||
163 | unsigned long mm_ptov (unsigned long paddr) | 163 | unsigned long mm_ptov (unsigned long paddr) |
164 | { | 164 | { |
165 | int i = 0; | 165 | int i = 0; |
@@ -185,6 +185,7 @@ unsigned long mm_ptov (unsigned long paddr) | |||
185 | #endif | 185 | #endif |
186 | return -1; | 186 | return -1; |
187 | } | 187 | } |
188 | EXPORT_SYMBOL(mm_ptov); | ||
188 | #endif | 189 | #endif |
189 | 190 | ||
190 | /* invalidate page in both caches */ | 191 | /* invalidate page in both caches */ |
@@ -298,6 +299,7 @@ void cache_clear (unsigned long paddr, int len) | |||
298 | mach_l2_flush(0); | 299 | mach_l2_flush(0); |
299 | #endif | 300 | #endif |
300 | } | 301 | } |
302 | EXPORT_SYMBOL(cache_clear); /* probably can be unexported */ | ||
301 | 303 | ||
302 | 304 | ||
303 | /* | 305 | /* |
@@ -350,6 +352,7 @@ void cache_push (unsigned long paddr, int len) | |||
350 | mach_l2_flush(1); | 352 | mach_l2_flush(1); |
351 | #endif | 353 | #endif |
352 | } | 354 | } |
355 | EXPORT_SYMBOL(cache_push); /* probably can be unexported */ | ||
353 | 356 | ||
354 | #ifndef CONFIG_SINGLE_MEMORY_CHUNK | 357 | #ifndef CONFIG_SINGLE_MEMORY_CHUNK |
355 | int mm_end_of_chunk (unsigned long addr, int len) | 358 | int mm_end_of_chunk (unsigned long addr, int len) |
@@ -361,4 +364,5 @@ int mm_end_of_chunk (unsigned long addr, int len) | |||
361 | return 1; | 364 | return 1; |
362 | return 0; | 365 | return 0; |
363 | } | 366 | } |
367 | EXPORT_SYMBOL(mm_end_of_chunk); | ||
364 | #endif | 368 | #endif |
diff --git a/arch/m68k/mm/sun3kmap.c b/arch/m68k/mm/sun3kmap.c index 8caa45908cb1..1af24cb5bfe1 100644 --- a/arch/m68k/mm/sun3kmap.c +++ b/arch/m68k/mm/sun3kmap.c | |||
@@ -8,6 +8,7 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/module.h> | ||
11 | #include <linux/types.h> | 12 | #include <linux/types.h> |
12 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
13 | #include <linux/mm.h> | 14 | #include <linux/mm.h> |
@@ -112,11 +113,13 @@ void __iomem *__ioremap(unsigned long phys, unsigned long size, int cache) | |||
112 | return sun3_ioremap(phys, size, SUN3_PAGE_TYPE_IO); | 113 | return sun3_ioremap(phys, size, SUN3_PAGE_TYPE_IO); |
113 | 114 | ||
114 | } | 115 | } |
116 | EXPORT_SYMBOL(__ioremap); | ||
115 | 117 | ||
116 | void iounmap(void __iomem *addr) | 118 | void iounmap(void __iomem *addr) |
117 | { | 119 | { |
118 | vfree((void *)(PAGE_MASK & (unsigned long)addr)); | 120 | vfree((void *)(PAGE_MASK & (unsigned long)addr)); |
119 | } | 121 | } |
122 | EXPORT_SYMBOL(iounmap); | ||
120 | 123 | ||
121 | /* sun3_map_test(addr, val) -- Reads a byte from addr, storing to val, | 124 | /* sun3_map_test(addr, val) -- Reads a byte from addr, storing to val, |
122 | * trapping the potential read fault. Returns 0 if the access faulted, | 125 | * trapping the potential read fault. Returns 0 if the access faulted, |