Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Al Viro and committed by
Linus Torvalds
2e811488 437111ca

+40 -68
-51
arch/m68k/kernel/m68k_ksyms.c
··· 1 1 #include <linux/module.h> 2 - #include <linux/linkage.h> 3 - #include <linux/sched.h> 4 - #include <linux/mm.h> 5 - #include <linux/user.h> 6 - #include <linux/elfcore.h> 7 - #include <linux/in6.h> 8 - #include <linux/interrupt.h> 9 - 10 - #include <asm/setup.h> 11 - #include <asm/machdep.h> 12 - #include <asm/pgalloc.h> 13 - #include <asm/irq.h> 14 - #include <asm/io.h> 15 2 #include <asm/semaphore.h> 16 - #include <asm/checksum.h> 17 3 18 4 asmlinkage long long __ashldi3 (long long, int); 19 5 asmlinkage long long __ashrdi3 (long long, int); 20 6 asmlinkage long long __lshrdi3 (long long, int); 21 7 asmlinkage long long __muldi3 (long long, long long); 22 - extern char m68k_debug_device[]; 23 - 24 - /* platform dependent support */ 25 - 26 - EXPORT_SYMBOL(m68k_machtype); 27 - EXPORT_SYMBOL(m68k_cputype); 28 - EXPORT_SYMBOL(m68k_is040or060); 29 - EXPORT_SYMBOL(m68k_realnum_memory); 30 - EXPORT_SYMBOL(m68k_memory); 31 - #ifndef CONFIG_SUN3 32 - EXPORT_SYMBOL(cache_push); 33 - EXPORT_SYMBOL(cache_clear); 34 - #ifndef CONFIG_SINGLE_MEMORY_CHUNK 35 - EXPORT_SYMBOL(mm_vtop); 36 - EXPORT_SYMBOL(mm_ptov); 37 - EXPORT_SYMBOL(mm_end_of_chunk); 38 - #else 39 - EXPORT_SYMBOL(m68k_memoffset); 40 - #endif /* !CONFIG_SINGLE_MEMORY_CHUNK */ 41 - EXPORT_SYMBOL(__ioremap); 42 - EXPORT_SYMBOL(iounmap); 43 - EXPORT_SYMBOL(kernel_set_cachemode); 44 - #endif /* !CONFIG_SUN3 */ 45 - EXPORT_SYMBOL(m68k_debug_device); 46 - EXPORT_SYMBOL(mach_hwclk); 47 - EXPORT_SYMBOL(mach_get_ss); 48 - EXPORT_SYMBOL(mach_get_rtc_pll); 49 - EXPORT_SYMBOL(mach_set_rtc_pll); 50 - #ifdef CONFIG_INPUT_M68K_BEEP_MODULE 51 - EXPORT_SYMBOL(mach_beep); 52 - #endif 53 - EXPORT_SYMBOL(dump_fpu); 54 - EXPORT_SYMBOL(dump_thread); 55 - EXPORT_SYMBOL(kernel_thread); 56 - #ifdef CONFIG_VME 57 - EXPORT_SYMBOL(vme_brdtype); 58 - #endif 59 8 60 9 /* The following are special because they're not called 61 10 explicitly (the C compiler generates them). Fortunately,
+3
arch/m68k/kernel/process.c
··· 187 187 set_fs (fs); 188 188 return pid; 189 189 } 190 + EXPORT_SYMBOL(kernel_thread); 190 191 191 192 void flush_thread(void) 192 193 { ··· 312 311 : "memory"); 313 312 return 1; 314 313 } 314 + EXPORT_SYMBOL(dump_fpu); 315 315 316 316 /* 317 317 * fill in the user structure for a core dump.. ··· 359 357 /* dump floating point stuff */ 360 358 dump->u_fpvalid = dump_fpu (regs, &dump->m68kfp); 361 359 } 360 + EXPORT_SYMBOL(dump_thread); 362 361 363 362 /* 364 363 * sys_execve() executes a new program.
+15
arch/m68k/kernel/setup.c
··· 42 42 43 43 unsigned long m68k_machtype; 44 44 unsigned long m68k_cputype; 45 + EXPORT_SYMBOL(m68k_machtype); 46 + EXPORT_SYMBOL(m68k_cputype); 45 47 unsigned long m68k_fputype; 46 48 unsigned long m68k_mmutype; 47 49 #ifdef CONFIG_VME 48 50 unsigned long vme_brdtype; 51 + EXPORT_SYMBOL(vme_brdtype); 49 52 #endif 50 53 51 54 int m68k_is040or060; 55 + EXPORT_SYMBOL(m68k_is040or060); 52 56 53 57 extern int end; 54 58 extern unsigned long availmem; 55 59 56 60 int m68k_num_memory; 57 61 int m68k_realnum_memory; 62 + EXPORT_SYMBOL(m68k_realnum_memory); 63 + #ifdef CONFIG_SINGLE_MEMORY_CHUNK 58 64 unsigned long m68k_memoffset; 65 + EXPORT_SYMBOL(m68k_memoffset); 66 + #endif 59 67 struct mem_info m68k_memory[NUM_MEMINFO]; 68 + EXPORT_SYMBOL(m68k_memory); 60 69 61 70 static struct mem_info m68k_ramdisk; 62 71 63 72 static char m68k_command_line[CL_SIZE]; 64 73 65 74 char m68k_debug_device[6] = ""; 75 + EXPORT_SYMBOL(m68k_debug_device); 66 76 67 77 void (*mach_sched_init) (irq_handler_t handler) __initdata = NULL; 68 78 /* machine dependent irq functions */ ··· 82 72 /* machine dependent timer functions */ 83 73 unsigned long (*mach_gettimeoffset) (void); 84 74 int (*mach_hwclk) (int, struct rtc_time*); 75 + EXPORT_SYMBOL(mach_hwclk); 85 76 int (*mach_set_clock_mmss) (unsigned long); 86 77 unsigned int (*mach_get_ss)(void); 87 78 int (*mach_get_rtc_pll)(struct rtc_pll_info *); 88 79 int (*mach_set_rtc_pll)(struct rtc_pll_info *); 80 + EXPORT_SYMBOL(mach_get_ss); 81 + EXPORT_SYMBOL(mach_get_rtc_pll); 82 + EXPORT_SYMBOL(mach_set_rtc_pll); 89 83 void (*mach_reset)( void ); 90 84 void (*mach_halt)( void ); 91 85 void (*mach_power_off)( void ); ··· 103 89 #endif 104 90 #if defined(CONFIG_INPUT_M68K_BEEP) || defined(CONFIG_INPUT_M68K_BEEP_MODULE) 105 91 void (*mach_beep)(unsigned int, unsigned int); 92 + EXPORT_SYMBOL(mach_beep); 106 93 #endif 107 94 #if defined(CONFIG_ISA) && defined(MULTI_ISA) 108 95 int isa_type;
+4
arch/m68k/mm/kmap.c
··· 7 7 * used by other architectures /Roman Zippel 8 8 */ 9 9 10 + #include <linux/module.h> 10 11 #include <linux/mm.h> 11 12 #include <linux/kernel.h> 12 13 #include <linux/string.h> ··· 220 219 221 220 return (void __iomem *)retaddr; 222 221 } 222 + EXPORT_SYMBOL(__ioremap); 223 223 224 224 /* 225 225 * Unmap a ioremap()ed region again ··· 236 234 free_io_area((__force void *)addr); 237 235 #endif 238 236 } 237 + EXPORT_SYMBOL(iounmap); 239 238 240 239 /* 241 240 * __iounmap unmaps nearly everything, so be careful ··· 363 360 364 361 flush_tlb_all(); 365 362 } 363 + EXPORT_SYMBOL(kernel_set_cachemode);
+6 -2
arch/m68k/mm/memory.c
··· 4 4 * Copyright (C) 1995 Hamish Macdonald 5 5 */ 6 6 7 + #include <linux/module.h> 7 8 #include <linux/mm.h> 8 9 #include <linux/kernel.h> 9 10 #include <linux/string.h> ··· 158 157 159 158 return -1; 160 159 } 161 - #endif 160 + EXPORT_SYMBOL(mm_vtop); 162 161 163 - #ifndef CONFIG_SINGLE_MEMORY_CHUNK 164 162 unsigned long mm_ptov (unsigned long paddr) 165 163 { 166 164 int i = 0; ··· 185 185 #endif 186 186 return -1; 187 187 } 188 + EXPORT_SYMBOL(mm_ptov); 188 189 #endif 189 190 190 191 /* invalidate page in both caches */ ··· 299 298 mach_l2_flush(0); 300 299 #endif 301 300 } 301 + EXPORT_SYMBOL(cache_clear); /* probably can be unexported */ 302 302 303 303 304 304 /* ··· 352 350 mach_l2_flush(1); 353 351 #endif 354 352 } 353 + EXPORT_SYMBOL(cache_push); /* probably can be unexported */ 355 354 356 355 #ifndef CONFIG_SINGLE_MEMORY_CHUNK 357 356 int mm_end_of_chunk (unsigned long addr, int len) ··· 364 361 return 1; 365 362 return 0; 366 363 } 364 + EXPORT_SYMBOL(mm_end_of_chunk); 367 365 #endif
+3
arch/m68k/mm/sun3kmap.c
··· 8 8 * for more details. 9 9 */ 10 10 11 + #include <linux/module.h> 11 12 #include <linux/types.h> 12 13 #include <linux/kernel.h> 13 14 #include <linux/mm.h> ··· 113 112 return sun3_ioremap(phys, size, SUN3_PAGE_TYPE_IO); 114 113 115 114 } 115 + EXPORT_SYMBOL(__ioremap); 116 116 117 117 void iounmap(void __iomem *addr) 118 118 { 119 119 vfree((void *)(PAGE_MASK & (unsigned long)addr)); 120 120 } 121 + EXPORT_SYMBOL(iounmap); 121 122 122 123 /* sun3_map_test(addr, val) -- Reads a byte from addr, storing to val, 123 124 * trapping the potential read fault. Returns 0 if the access faulted,
+1 -1
arch/m68k/sun3/Makefile
··· 2 2 # Makefile for Linux arch/m68k/sun3 source directory 3 3 # 4 4 5 - obj-y := sun3_ksyms.o sun3ints.o sun3dvma.o sbus.o idprom.o 5 + obj-y := sun3ints.o sun3dvma.o sbus.o idprom.o 6 6 7 7 obj-$(CONFIG_SUN3) += config.o mmu_emu.o leds.o dvma.o intersil.o
+3
arch/m68k/sun3/idprom.c
··· 6 6 * Sun3/3x models added by David Monro (davidm@psrg.cs.usyd.edu.au) 7 7 */ 8 8 9 + #include <linux/module.h> 9 10 #include <linux/kernel.h> 10 11 #include <linux/types.h> 11 12 #include <linux/init.h> ··· 17 16 #include <asm/machines.h> /* Fun with Sun released architectures. */ 18 17 19 18 struct idprom *idprom; 19 + EXPORT_SYMBOL(idprom); 20 + 20 21 static struct idprom idprom_buffer; 21 22 22 23 /* Here is the master table of Sun machines which use some implementation
-13
arch/m68k/sun3/sun3_ksyms.c
··· 1 - #include <linux/module.h> 2 - #include <linux/types.h> 3 - #include <asm/dvma.h> 4 - #include <asm/idprom.h> 5 - 6 - /* 7 - * Add things here when you find the need for it. 8 - */ 9 - EXPORT_SYMBOL(dvma_map_align); 10 - EXPORT_SYMBOL(dvma_unmap); 11 - EXPORT_SYMBOL(dvma_malloc_align); 12 - EXPORT_SYMBOL(dvma_free); 13 - EXPORT_SYMBOL(idprom);
+5 -1
arch/m68k/sun3/sun3dvma.c
··· 6 6 * Contains common routines for sun3/sun3x DVMA management. 7 7 */ 8 8 9 + #include <linux/module.h> 9 10 #include <linux/kernel.h> 10 11 #include <linux/mm.h> 11 12 #include <linux/list.h> ··· 313 312 BUG(); 314 313 return 0; 315 314 } 315 + EXPORT_SYMBOL(dvma_map_align); 316 316 317 317 void dvma_unmap(void *baddr) 318 318 { ··· 329 327 return; 330 328 331 329 } 332 - 330 + EXPORT_SYMBOL(dvma_unmap); 333 331 334 332 void *dvma_malloc_align(unsigned long len, unsigned long align) 335 333 { ··· 369 367 return (void *)vaddr; 370 368 371 369 } 370 + EXPORT_SYMBOL(dvma_malloc_align); 372 371 373 372 void dvma_free(void *vaddr) 374 373 { ··· 377 374 return; 378 375 379 376 } 377 + EXPORT_SYMBOL(dvma_free);