diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-11 13:04:04 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-07 23:47:19 -0400 |
commit | d13ffb5630443e6112df0263969cbdfc8ab9ab57 (patch) | |
tree | 9d9b9a3800f8ee66c6b8520d8e21414f5de83ecf /arch/m68k | |
parent | 00fc0e0dda6286407f3854cd71a125f519a5689c (diff) |
m68k: move exports to definitions
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/export.h | 3 | ||||
-rw-r--r-- | arch/m68k/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/m68k/kernel/m68k_ksyms.c | 32 | ||||
-rw-r--r-- | arch/m68k/lib/ashldi3.c | 4 | ||||
-rw-r--r-- | arch/m68k/lib/ashrdi3.c | 4 | ||||
-rw-r--r-- | arch/m68k/lib/divsi3.S | 3 | ||||
-rw-r--r-- | arch/m68k/lib/lshrdi3.c | 4 | ||||
-rw-r--r-- | arch/m68k/lib/modsi3.S | 3 | ||||
-rw-r--r-- | arch/m68k/lib/muldi3.c | 4 | ||||
-rw-r--r-- | arch/m68k/lib/mulsi3.S | 4 | ||||
-rw-r--r-- | arch/m68k/lib/udivsi3.S | 4 | ||||
-rw-r--r-- | arch/m68k/lib/umodsi3.S | 4 |
12 files changed, 32 insertions, 39 deletions
diff --git a/arch/m68k/include/asm/export.h b/arch/m68k/include/asm/export.h new file mode 100644 index 000000000000..0af20f48bd07 --- /dev/null +++ b/arch/m68k/include/asm/export.h | |||
@@ -0,0 +1,3 @@ | |||
1 | #define KSYM_ALIGN 2 | ||
2 | #define KCRC_ALIGN 2 | ||
3 | #include <asm-generic/export.h> | ||
diff --git a/arch/m68k/kernel/Makefile b/arch/m68k/kernel/Makefile index e47778f8588d..3600500beab5 100644 --- a/arch/m68k/kernel/Makefile +++ b/arch/m68k/kernel/Makefile | |||
@@ -13,7 +13,7 @@ extra-$(CONFIG_SUN3X) := head.o | |||
13 | extra-$(CONFIG_SUN3) := sun3-head.o | 13 | extra-$(CONFIG_SUN3) := sun3-head.o |
14 | extra-y += vmlinux.lds | 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 | obj-y += setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o | 17 | obj-y += setup.o signal.o sys_m68k.o syscalltable.o time.o traps.o |
18 | 18 | ||
19 | obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o | 19 | obj-$(CONFIG_MMU_MOTOROLA) += ints.o vectors.o |
diff --git a/arch/m68k/kernel/m68k_ksyms.c b/arch/m68k/kernel/m68k_ksyms.c deleted file mode 100644 index 774c1bd59c36..000000000000 --- a/arch/m68k/kernel/m68k_ksyms.c +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | ||
diff --git a/arch/m68k/lib/ashldi3.c b/arch/m68k/lib/ashldi3.c index 37234c2df47f..8dffd36ec4f2 100644 --- a/arch/m68k/lib/ashldi3.c +++ b/arch/m68k/lib/ashldi3.c | |||
@@ -13,6 +13,9 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. */ | 14 | GNU General Public License for more details. */ |
15 | 15 | ||
16 | #include <linux/compiler.h> | ||
17 | #include <linux/export.h> | ||
18 | |||
16 | #define BITS_PER_UNIT 8 | 19 | #define BITS_PER_UNIT 8 |
17 | 20 | ||
18 | typedef int SItype __attribute__ ((mode (SI))); | 21 | typedef int SItype __attribute__ ((mode (SI))); |
@@ -55,3 +58,4 @@ __ashldi3 (DItype u, word_type b) | |||
55 | 58 | ||
56 | return w.ll; | 59 | return w.ll; |
57 | } | 60 | } |
61 | EXPORT_SYMBOL(__ashldi3); | ||
diff --git a/arch/m68k/lib/ashrdi3.c b/arch/m68k/lib/ashrdi3.c index 1d59345f36c6..e6565a3ee2c3 100644 --- a/arch/m68k/lib/ashrdi3.c +++ b/arch/m68k/lib/ashrdi3.c | |||
@@ -13,6 +13,9 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. */ | 14 | GNU General Public License for more details. */ |
15 | 15 | ||
16 | #include <linux/compiler.h> | ||
17 | #include <linux/export.h> | ||
18 | |||
16 | #define BITS_PER_UNIT 8 | 19 | #define BITS_PER_UNIT 8 |
17 | 20 | ||
18 | typedef int SItype __attribute__ ((mode (SI))); | 21 | typedef int SItype __attribute__ ((mode (SI))); |
@@ -56,3 +59,4 @@ __ashrdi3 (DItype u, word_type b) | |||
56 | 59 | ||
57 | return w.ll; | 60 | return w.ll; |
58 | } | 61 | } |
62 | EXPORT_SYMBOL(__ashrdi3); | ||
diff --git a/arch/m68k/lib/divsi3.S b/arch/m68k/lib/divsi3.S index 2c0ec85ac661..3a2143f51631 100644 --- a/arch/m68k/lib/divsi3.S +++ b/arch/m68k/lib/divsi3.S | |||
@@ -33,6 +33,8 @@ General Public License for more details. */ | |||
33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 | 33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <asm/export.h> | ||
37 | |||
36 | /* These are predefined by new versions of GNU cpp. */ | 38 | /* These are predefined by new versions of GNU cpp. */ |
37 | 39 | ||
38 | #ifndef __USER_LABEL_PREFIX__ | 40 | #ifndef __USER_LABEL_PREFIX__ |
@@ -118,3 +120,4 @@ L2: movel d1, sp@- | |||
118 | L3: movel sp@+, d2 | 120 | L3: movel sp@+, d2 |
119 | rts | 121 | rts |
120 | 122 | ||
123 | EXPORT_SYMBOL(__divsi3) | ||
diff --git a/arch/m68k/lib/lshrdi3.c b/arch/m68k/lib/lshrdi3.c index 49e1ec8f2cc2..039779737c7d 100644 --- a/arch/m68k/lib/lshrdi3.c +++ b/arch/m68k/lib/lshrdi3.c | |||
@@ -13,6 +13,9 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. */ | 14 | GNU General Public License for more details. */ |
15 | 15 | ||
16 | #include <linux/compiler.h> | ||
17 | #include <linux/export.h> | ||
18 | |||
16 | #define BITS_PER_UNIT 8 | 19 | #define BITS_PER_UNIT 8 |
17 | 20 | ||
18 | typedef int SItype __attribute__ ((mode (SI))); | 21 | typedef int SItype __attribute__ ((mode (SI))); |
@@ -55,3 +58,4 @@ __lshrdi3 (DItype u, word_type b) | |||
55 | 58 | ||
56 | return w.ll; | 59 | return w.ll; |
57 | } | 60 | } |
61 | EXPORT_SYMBOL(__lshrdi3); | ||
diff --git a/arch/m68k/lib/modsi3.S b/arch/m68k/lib/modsi3.S index 1d9e0efdf31d..1c967649a4e0 100644 --- a/arch/m68k/lib/modsi3.S +++ b/arch/m68k/lib/modsi3.S | |||
@@ -33,6 +33,8 @@ General Public License for more details. */ | |||
33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 | 33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 |
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <asm/export.h> | ||
37 | |||
36 | /* These are predefined by new versions of GNU cpp. */ | 38 | /* These are predefined by new versions of GNU cpp. */ |
37 | 39 | ||
38 | #ifndef __USER_LABEL_PREFIX__ | 40 | #ifndef __USER_LABEL_PREFIX__ |
@@ -106,3 +108,4 @@ SYM (__modsi3): | |||
106 | movel d1, d0 | 108 | movel d1, d0 |
107 | rts | 109 | rts |
108 | 110 | ||
111 | EXPORT_SYMBOL(__modsi3) | ||
diff --git a/arch/m68k/lib/muldi3.c b/arch/m68k/lib/muldi3.c index 9006d15b8721..6459af5b2af0 100644 --- a/arch/m68k/lib/muldi3.c +++ b/arch/m68k/lib/muldi3.c | |||
@@ -14,6 +14,9 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. */ | 15 | GNU General Public License for more details. */ |
16 | 16 | ||
17 | #include <linux/compiler.h> | ||
18 | #include <linux/export.h> | ||
19 | |||
17 | #ifdef CONFIG_CPU_HAS_NO_MULDIV64 | 20 | #ifdef CONFIG_CPU_HAS_NO_MULDIV64 |
18 | 21 | ||
19 | #define SI_TYPE_SIZE 32 | 22 | #define SI_TYPE_SIZE 32 |
@@ -90,3 +93,4 @@ __muldi3 (DItype u, DItype v) | |||
90 | 93 | ||
91 | return w.ll; | 94 | return w.ll; |
92 | } | 95 | } |
96 | EXPORT_SYMBOL(__muldi3); | ||
diff --git a/arch/m68k/lib/mulsi3.S b/arch/m68k/lib/mulsi3.S index c39ad4e738e9..855675e69a8a 100644 --- a/arch/m68k/lib/mulsi3.S +++ b/arch/m68k/lib/mulsi3.S | |||
@@ -32,7 +32,7 @@ General Public License for more details. */ | |||
32 | Some of this code comes from MINIX, via the folks at ericsson. | 32 | Some of this code comes from MINIX, via the folks at ericsson. |
33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 | 33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 |
34 | */ | 34 | */ |
35 | 35 | #include <asm/export.h> | |
36 | /* These are predefined by new versions of GNU cpp. */ | 36 | /* These are predefined by new versions of GNU cpp. */ |
37 | 37 | ||
38 | #ifndef __USER_LABEL_PREFIX__ | 38 | #ifndef __USER_LABEL_PREFIX__ |
@@ -102,4 +102,4 @@ SYM (__mulsi3): | |||
102 | addl d1, d0 | 102 | addl d1, d0 |
103 | 103 | ||
104 | rts | 104 | rts |
105 | 105 | EXPORT_SYMBOL(__mulsi3) | |
diff --git a/arch/m68k/lib/udivsi3.S b/arch/m68k/lib/udivsi3.S index 35a5446572a5..78440ae513bf 100644 --- a/arch/m68k/lib/udivsi3.S +++ b/arch/m68k/lib/udivsi3.S | |||
@@ -32,7 +32,7 @@ General Public License for more details. */ | |||
32 | Some of this code comes from MINIX, via the folks at ericsson. | 32 | Some of this code comes from MINIX, via the folks at ericsson. |
33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 | 33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 |
34 | */ | 34 | */ |
35 | 35 | #include <asm/export.h> | |
36 | /* These are predefined by new versions of GNU cpp. */ | 36 | /* These are predefined by new versions of GNU cpp. */ |
37 | 37 | ||
38 | #ifndef __USER_LABEL_PREFIX__ | 38 | #ifndef __USER_LABEL_PREFIX__ |
@@ -154,4 +154,4 @@ L2: subql IMM (1),d4 | |||
154 | unlk a6 | and return | 154 | unlk a6 | and return |
155 | rts | 155 | rts |
156 | #endif /* __mcf5200__ || __mcoldfire__ */ | 156 | #endif /* __mcf5200__ || __mcoldfire__ */ |
157 | 157 | EXPORT_SYMBOL(__udivsi3) | |
diff --git a/arch/m68k/lib/umodsi3.S b/arch/m68k/lib/umodsi3.S index 099da514a8fd..b6fd11f58948 100644 --- a/arch/m68k/lib/umodsi3.S +++ b/arch/m68k/lib/umodsi3.S | |||
@@ -32,7 +32,7 @@ General Public License for more details. */ | |||
32 | Some of this code comes from MINIX, via the folks at ericsson. | 32 | Some of this code comes from MINIX, via the folks at ericsson. |
33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 | 33 | D. V. Henkel-Wallace (gumby@cygnus.com) Fete Bastille, 1992 |
34 | */ | 34 | */ |
35 | 35 | #include <asm/export.h> | |
36 | /* These are predefined by new versions of GNU cpp. */ | 36 | /* These are predefined by new versions of GNU cpp. */ |
37 | 37 | ||
38 | #ifndef __USER_LABEL_PREFIX__ | 38 | #ifndef __USER_LABEL_PREFIX__ |
@@ -105,4 +105,4 @@ SYM (__umodsi3): | |||
105 | subl d0, d1 /* d1 = a - (a/b)*b */ | 105 | subl d0, d1 /* d1 = a - (a/b)*b */ |
106 | movel d1, d0 | 106 | movel d1, d0 |
107 | rts | 107 | rts |
108 | 108 | EXPORT_SYMBOL(__umodsi3) | |