[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>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* used by other architectures /Roman Zippel
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
@@ -219,6 +220,7 @@ void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cachefla
|
||||
|
||||
return (void __iomem *)retaddr;
|
||||
}
|
||||
EXPORT_SYMBOL(__ioremap);
|
||||
|
||||
/*
|
||||
* Unmap a ioremap()ed region again
|
||||
@@ -234,6 +236,7 @@ void iounmap(void __iomem *addr)
|
||||
free_io_area((__force void *)addr);
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(iounmap);
|
||||
|
||||
/*
|
||||
* __iounmap unmaps nearly everything, so be careful
|
||||
@@ -360,3 +363,4 @@ void kernel_set_cachemode(void *addr, unsigned long size, int cmode)
|
||||
|
||||
flush_tlb_all();
|
||||
}
|
||||
EXPORT_SYMBOL(kernel_set_cachemode);
|
||||
|
@@ -4,6 +4,7 @@
|
||||
* Copyright (C) 1995 Hamish Macdonald
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
@@ -157,9 +158,8 @@ unsigned long mm_vtop(unsigned long vaddr)
|
||||
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
EXPORT_SYMBOL(mm_vtop);
|
||||
|
||||
#ifndef CONFIG_SINGLE_MEMORY_CHUNK
|
||||
unsigned long mm_ptov (unsigned long paddr)
|
||||
{
|
||||
int i = 0;
|
||||
@@ -185,6 +185,7 @@ unsigned long mm_ptov (unsigned long paddr)
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
EXPORT_SYMBOL(mm_ptov);
|
||||
#endif
|
||||
|
||||
/* invalidate page in both caches */
|
||||
@@ -298,6 +299,7 @@ void cache_clear (unsigned long paddr, int len)
|
||||
mach_l2_flush(0);
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(cache_clear); /* probably can be unexported */
|
||||
|
||||
|
||||
/*
|
||||
@@ -350,6 +352,7 @@ void cache_push (unsigned long paddr, int len)
|
||||
mach_l2_flush(1);
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL(cache_push); /* probably can be unexported */
|
||||
|
||||
#ifndef CONFIG_SINGLE_MEMORY_CHUNK
|
||||
int mm_end_of_chunk (unsigned long addr, int len)
|
||||
@@ -361,4 +364,5 @@ int mm_end_of_chunk (unsigned long addr, int len)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(mm_end_of_chunk);
|
||||
#endif
|
||||
|
@@ -8,6 +8,7 @@
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/mm.h>
|
||||
@@ -112,11 +113,13 @@ void __iomem *__ioremap(unsigned long phys, unsigned long size, int cache)
|
||||
return sun3_ioremap(phys, size, SUN3_PAGE_TYPE_IO);
|
||||
|
||||
}
|
||||
EXPORT_SYMBOL(__ioremap);
|
||||
|
||||
void iounmap(void __iomem *addr)
|
||||
{
|
||||
vfree((void *)(PAGE_MASK & (unsigned long)addr));
|
||||
}
|
||||
EXPORT_SYMBOL(iounmap);
|
||||
|
||||
/* sun3_map_test(addr, val) -- Reads a byte from addr, storing to val,
|
||||
* trapping the potential read fault. Returns 0 if the access faulted,
|
||||
|
Reference in New Issue
Block a user