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

m68k: move exports to definitions

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro d13ffb56 00fc0e0d

+32 -39
+3
arch/m68k/include/asm/export.h
··· 1 + #define KSYM_ALIGN 2 2 + #define KCRC_ALIGN 2 3 + #include <asm-generic/export.h>
+1 -1
arch/m68k/kernel/Makefile
··· 13 13 extra-$(CONFIG_SUN3) := sun3-head.o 14 14 extra-y += vmlinux.lds 15 15 16 - obj-y := entry.o irq.o m68k_ksyms.o module.o process.o ptrace.o 16 + obj-y := entry.o irq.o module.o process.o ptrace.o 17 17 obj-y += setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o 18 18 19 19 obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o
-32
arch/m68k/kernel/m68k_ksyms.c
··· 1 - #include <linux/module.h> 2 - 3 - asmlinkage long long __ashldi3 (long long, int); 4 - asmlinkage long long __ashrdi3 (long long, int); 5 - asmlinkage long long __lshrdi3 (long long, int); 6 - asmlinkage long long __muldi3 (long long, long long); 7 - 8 - /* The following are special because they're not called 9 - explicitly (the C compiler generates them). Fortunately, 10 - their interface isn't gonna change any time soon now, so 11 - it's OK to leave it out of version control. */ 12 - EXPORT_SYMBOL(__ashldi3); 13 - EXPORT_SYMBOL(__ashrdi3); 14 - EXPORT_SYMBOL(__lshrdi3); 15 - EXPORT_SYMBOL(__muldi3); 16 - 17 - #if defined(CONFIG_CPU_HAS_NO_MULDIV64) 18 - /* 19 - * Simpler 68k and ColdFire parts also need a few other gcc functions. 20 - */ 21 - extern long long __divsi3(long long, long long); 22 - extern long long __modsi3(long long, long long); 23 - extern long long __mulsi3(long long, long long); 24 - extern long long __udivsi3(long long, long long); 25 - extern long long __umodsi3(long long, long long); 26 - 27 - EXPORT_SYMBOL(__divsi3); 28 - EXPORT_SYMBOL(__modsi3); 29 - EXPORT_SYMBOL(__mulsi3); 30 - EXPORT_SYMBOL(__udivsi3); 31 - EXPORT_SYMBOL(__umodsi3); 32 - #endif
+4
arch/m68k/lib/ashldi3.c
··· 13 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 GNU General Public License for more details. */ 15 15 16 + #include <linux/compiler.h> 17 + #include <linux/export.h> 18 + 16 19 #define BITS_PER_UNIT 8 17 20 18 21 typedef int SItype __attribute__ ((mode (SI))); ··· 58 55 59 56 return w.ll; 60 57 } 58 + EXPORT_SYMBOL(__ashldi3);
+4
arch/m68k/lib/ashrdi3.c
··· 13 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 GNU General Public License for more details. */ 15 15 16 + #include <linux/compiler.h> 17 + #include <linux/export.h> 18 + 16 19 #define BITS_PER_UNIT 8 17 20 18 21 typedef int SItype __attribute__ ((mode (SI))); ··· 59 56 60 57 return w.ll; 61 58 } 59 + EXPORT_SYMBOL(__ashrdi3);
+3
arch/m68k/lib/divsi3.S
··· 33 33 D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 34 34 */ 35 35 36 + #include <asm/export.h> 37 + 36 38 /* These are predefined by new versions of GNU cpp. */ 37 39 38 40 #ifndef __USER_LABEL_PREFIX__ ··· 120 118 L3: movel sp@+, d2 121 119 rts 122 120 121 + EXPORT_SYMBOL(__divsi3)
+4
arch/m68k/lib/lshrdi3.c
··· 13 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 GNU General Public License for more details. */ 15 15 16 + #include <linux/compiler.h> 17 + #include <linux/export.h> 18 + 16 19 #define BITS_PER_UNIT 8 17 20 18 21 typedef int SItype __attribute__ ((mode (SI))); ··· 58 55 59 56 return w.ll; 60 57 } 58 + EXPORT_SYMBOL(__lshrdi3);
+3
arch/m68k/lib/modsi3.S
··· 33 33 D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 34 34 */ 35 35 36 + #include <asm/export.h> 37 + 36 38 /* These are predefined by new versions of GNU cpp. */ 37 39 38 40 #ifndef __USER_LABEL_PREFIX__ ··· 108 106 movel d1, d0 109 107 rts 110 108 109 + EXPORT_SYMBOL(__modsi3)
+4
arch/m68k/lib/muldi3.c
··· 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 15 GNU General Public License for more details. */ 16 16 17 + #include <linux/compiler.h> 18 + #include <linux/export.h> 19 + 17 20 #ifdef CONFIG_CPU_HAS_NO_MULDIV64 18 21 19 22 #define SI_TYPE_SIZE 32 ··· 93 90 94 91 return w.ll; 95 92 } 93 + EXPORT_SYMBOL(__muldi3);
+2 -2
arch/m68k/lib/mulsi3.S
··· 32 32 Some of this code comes from MINIX, via the folks at ericsson. 33 33 D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 34 34 */ 35 - 35 + #include <asm/export.h> 36 36 /* These are predefined by new versions of GNU cpp. */ 37 37 38 38 #ifndef __USER_LABEL_PREFIX__ ··· 102 102 addl d1, d0 103 103 104 104 rts 105 - 105 + EXPORT_SYMBOL(__mulsi3)
+2 -2
arch/m68k/lib/udivsi3.S
··· 32 32 Some of this code comes from MINIX, via the folks at ericsson. 33 33 D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 34 34 */ 35 - 35 + #include <asm/export.h> 36 36 /* These are predefined by new versions of GNU cpp. */ 37 37 38 38 #ifndef __USER_LABEL_PREFIX__ ··· 154 154 unlk a6 | and return 155 155 rts 156 156 #endif /* __mcf5200__ || __mcoldfire__ */ 157 - 157 + EXPORT_SYMBOL(__udivsi3)
+2 -2
arch/m68k/lib/umodsi3.S
··· 32 32 Some of this code comes from MINIX, via the folks at ericsson. 33 33 D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 34 34 */ 35 - 35 + #include <asm/export.h> 36 36 /* These are predefined by new versions of GNU cpp. */ 37 37 38 38 #ifndef __USER_LABEL_PREFIX__ ··· 105 105 subl d0, d1 /* d1 = a - (a/b)*b */ 106 106 movel d1, d0 107 107 rts 108 - 108 + EXPORT_SYMBOL(__umodsi3)