diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-11 09:51:29 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-08-07 23:47:18 -0400 |
commit | 00fc0e0dda6286407f3854cd71a125f519a5689c (patch) | |
tree | 04bae7f61ab6ac1a705e89f8b739e2d0679f212f /arch/alpha/lib | |
parent | 784d5699eddc55878627da20d3fe0c8542e2f1a2 (diff) |
alpha: move exports to actual definitions
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/alpha/lib')
36 files changed, 92 insertions, 26 deletions
diff --git a/arch/alpha/lib/callback_srm.S b/arch/alpha/lib/callback_srm.S index 8804bec2c644..6093addc931a 100644 --- a/arch/alpha/lib/callback_srm.S +++ b/arch/alpha/lib/callback_srm.S | |||
@@ -3,6 +3,7 @@ | |||
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include <asm/console.h> | 5 | #include <asm/console.h> |
6 | #include <asm/export.h> | ||
6 | 7 | ||
7 | .text | 8 | .text |
8 | #define HWRPB_CRB_OFFSET 0xc0 | 9 | #define HWRPB_CRB_OFFSET 0xc0 |
@@ -92,6 +93,10 @@ CALLBACK(reset_env, CCB_RESET_ENV, 4) | |||
92 | CALLBACK(save_env, CCB_SAVE_ENV, 1) | 93 | CALLBACK(save_env, CCB_SAVE_ENV, 1) |
93 | CALLBACK(pswitch, CCB_PSWITCH, 3) | 94 | CALLBACK(pswitch, CCB_PSWITCH, 3) |
94 | CALLBACK(bios_emul, CCB_BIOS_EMUL, 5) | 95 | CALLBACK(bios_emul, CCB_BIOS_EMUL, 5) |
96 | |||
97 | EXPORT_SYMBOL(callback_getenv) | ||
98 | EXPORT_SYMBOL(callback_setenv) | ||
99 | EXPORT_SYMBOL(callback_save_env) | ||
95 | 100 | ||
96 | .data | 101 | .data |
97 | __alpha_using_srm: # For use by bootpheader | 102 | __alpha_using_srm: # For use by bootpheader |
diff --git a/arch/alpha/lib/checksum.c b/arch/alpha/lib/checksum.c index 377f9e34eb97..b57f8007db14 100644 --- a/arch/alpha/lib/checksum.c +++ b/arch/alpha/lib/checksum.c | |||
@@ -48,6 +48,7 @@ __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, | |||
48 | (__force u64)saddr + (__force u64)daddr + | 48 | (__force u64)saddr + (__force u64)daddr + |
49 | (__force u64)sum + ((len + proto) << 8)); | 49 | (__force u64)sum + ((len + proto) << 8)); |
50 | } | 50 | } |
51 | EXPORT_SYMBOL(csum_tcpudp_magic); | ||
51 | 52 | ||
52 | __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, | 53 | __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr, |
53 | __u32 len, __u8 proto, __wsum sum) | 54 | __u32 len, __u8 proto, __wsum sum) |
@@ -144,6 +145,7 @@ __sum16 ip_fast_csum(const void *iph, unsigned int ihl) | |||
144 | { | 145 | { |
145 | return (__force __sum16)~do_csum(iph,ihl*4); | 146 | return (__force __sum16)~do_csum(iph,ihl*4); |
146 | } | 147 | } |
148 | EXPORT_SYMBOL(ip_fast_csum); | ||
147 | 149 | ||
148 | /* | 150 | /* |
149 | * computes the checksum of a memory block at buff, length len, | 151 | * computes the checksum of a memory block at buff, length len, |
@@ -178,3 +180,4 @@ __sum16 ip_compute_csum(const void *buff, int len) | |||
178 | { | 180 | { |
179 | return (__force __sum16)~from64to16(do_csum(buff,len)); | 181 | return (__force __sum16)~from64to16(do_csum(buff,len)); |
180 | } | 182 | } |
183 | EXPORT_SYMBOL(ip_compute_csum); | ||
diff --git a/arch/alpha/lib/clear_page.S b/arch/alpha/lib/clear_page.S index a221ae266e29..263d7393c0e7 100644 --- a/arch/alpha/lib/clear_page.S +++ b/arch/alpha/lib/clear_page.S | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Zero an entire page. | 4 | * Zero an entire page. |
5 | */ | 5 | */ |
6 | 6 | #include <asm/export.h> | |
7 | .text | 7 | .text |
8 | .align 4 | 8 | .align 4 |
9 | .global clear_page | 9 | .global clear_page |
@@ -37,3 +37,4 @@ clear_page: | |||
37 | nop | 37 | nop |
38 | 38 | ||
39 | .end clear_page | 39 | .end clear_page |
40 | EXPORT_SYMBOL(clear_page) | ||
diff --git a/arch/alpha/lib/clear_user.S b/arch/alpha/lib/clear_user.S index 8860316c1957..bf5b931866ba 100644 --- a/arch/alpha/lib/clear_user.S +++ b/arch/alpha/lib/clear_user.S | |||
@@ -24,6 +24,7 @@ | |||
24 | * Clobbers: | 24 | * Clobbers: |
25 | * $1,$2,$3,$4,$5,$6 | 25 | * $1,$2,$3,$4,$5,$6 |
26 | */ | 26 | */ |
27 | #include <asm/export.h> | ||
27 | 28 | ||
28 | /* Allow an exception for an insn; exit if we get one. */ | 29 | /* Allow an exception for an insn; exit if we get one. */ |
29 | #define EX(x,y...) \ | 30 | #define EX(x,y...) \ |
@@ -111,3 +112,4 @@ $exception: | |||
111 | ret $31, ($28), 1 # .. e1 : | 112 | ret $31, ($28), 1 # .. e1 : |
112 | 113 | ||
113 | .end __do_clear_user | 114 | .end __do_clear_user |
115 | EXPORT_SYMBOL(__do_clear_user) | ||
diff --git a/arch/alpha/lib/copy_page.S b/arch/alpha/lib/copy_page.S index 9f3b97459cc6..2ee0bd0508c5 100644 --- a/arch/alpha/lib/copy_page.S +++ b/arch/alpha/lib/copy_page.S | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Copy an entire page. | 4 | * Copy an entire page. |
5 | */ | 5 | */ |
6 | 6 | #include <asm/export.h> | |
7 | .text | 7 | .text |
8 | .align 4 | 8 | .align 4 |
9 | .global copy_page | 9 | .global copy_page |
@@ -47,3 +47,4 @@ copy_page: | |||
47 | nop | 47 | nop |
48 | 48 | ||
49 | .end copy_page | 49 | .end copy_page |
50 | EXPORT_SYMBOL(copy_page) | ||
diff --git a/arch/alpha/lib/copy_user.S b/arch/alpha/lib/copy_user.S index 6f3fab9eb434..2238068b1b40 100644 --- a/arch/alpha/lib/copy_user.S +++ b/arch/alpha/lib/copy_user.S | |||
@@ -26,6 +26,8 @@ | |||
26 | * $1,$2,$3,$4,$5,$6,$7 | 26 | * $1,$2,$3,$4,$5,$6,$7 |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include <asm/export.h> | ||
30 | |||
29 | /* Allow an exception for an insn; exit if we get one. */ | 31 | /* Allow an exception for an insn; exit if we get one. */ |
30 | #define EXI(x,y...) \ | 32 | #define EXI(x,y...) \ |
31 | 99: x,##y; \ | 33 | 99: x,##y; \ |
@@ -143,3 +145,4 @@ $101: | |||
143 | ret $31,($28),1 | 145 | ret $31,($28),1 |
144 | 146 | ||
145 | .end __copy_user | 147 | .end __copy_user |
148 | EXPORT_SYMBOL(__copy_user) | ||
diff --git a/arch/alpha/lib/csum_ipv6_magic.S b/arch/alpha/lib/csum_ipv6_magic.S index 2c2acb96deb6..e74b4544b0cc 100644 --- a/arch/alpha/lib/csum_ipv6_magic.S +++ b/arch/alpha/lib/csum_ipv6_magic.S | |||
@@ -12,6 +12,7 @@ | |||
12 | * added by Ivan Kokshaysky <ink@jurassic.park.msu.ru> | 12 | * added by Ivan Kokshaysky <ink@jurassic.park.msu.ru> |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <asm/export.h> | ||
15 | .globl csum_ipv6_magic | 16 | .globl csum_ipv6_magic |
16 | .align 4 | 17 | .align 4 |
17 | .ent csum_ipv6_magic | 18 | .ent csum_ipv6_magic |
@@ -113,3 +114,4 @@ csum_ipv6_magic: | |||
113 | ret # .. e1 : | 114 | ret # .. e1 : |
114 | 115 | ||
115 | .end csum_ipv6_magic | 116 | .end csum_ipv6_magic |
117 | EXPORT_SYMBOL(csum_ipv6_magic) | ||
diff --git a/arch/alpha/lib/csum_partial_copy.c b/arch/alpha/lib/csum_partial_copy.c index 5675dca8dbb1..b4ff3b683bcd 100644 --- a/arch/alpha/lib/csum_partial_copy.c +++ b/arch/alpha/lib/csum_partial_copy.c | |||
@@ -374,6 +374,7 @@ csum_partial_copy_from_user(const void __user *src, void *dst, int len, | |||
374 | } | 374 | } |
375 | return (__force __wsum)checksum; | 375 | return (__force __wsum)checksum; |
376 | } | 376 | } |
377 | EXPORT_SYMBOL(csum_partial_copy_from_user); | ||
377 | 378 | ||
378 | __wsum | 379 | __wsum |
379 | csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) | 380 | csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) |
@@ -386,3 +387,4 @@ csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) | |||
386 | set_fs(oldfs); | 387 | set_fs(oldfs); |
387 | return checksum; | 388 | return checksum; |
388 | } | 389 | } |
390 | EXPORT_SYMBOL(csum_partial_copy_nocheck); | ||
diff --git a/arch/alpha/lib/dec_and_lock.c b/arch/alpha/lib/dec_and_lock.c index f9f5fe830e9f..4221b40167ee 100644 --- a/arch/alpha/lib/dec_and_lock.c +++ b/arch/alpha/lib/dec_and_lock.c | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #include <linux/spinlock.h> | 8 | #include <linux/spinlock.h> |
9 | #include <linux/atomic.h> | 9 | #include <linux/atomic.h> |
10 | #include <linux/export.h> | ||
10 | 11 | ||
11 | asm (".text \n\ | 12 | asm (".text \n\ |
12 | .global _atomic_dec_and_lock \n\ | 13 | .global _atomic_dec_and_lock \n\ |
@@ -39,3 +40,4 @@ static int __used atomic_dec_and_lock_1(atomic_t *atomic, spinlock_t *lock) | |||
39 | spin_unlock(lock); | 40 | spin_unlock(lock); |
40 | return 0; | 41 | return 0; |
41 | } | 42 | } |
43 | EXPORT_SYMBOL(_atomic_dec_and_lock); | ||
diff --git a/arch/alpha/lib/divide.S b/arch/alpha/lib/divide.S index 2d1a0484a99e..1e33bd127621 100644 --- a/arch/alpha/lib/divide.S +++ b/arch/alpha/lib/divide.S | |||
@@ -45,6 +45,7 @@ | |||
45 | * $28 - compare status | 45 | * $28 - compare status |
46 | */ | 46 | */ |
47 | 47 | ||
48 | #include <asm/export.h> | ||
48 | #define halt .long 0 | 49 | #define halt .long 0 |
49 | 50 | ||
50 | /* | 51 | /* |
@@ -151,6 +152,7 @@ ufunction: | |||
151 | addq $30,STACK,$30 | 152 | addq $30,STACK,$30 |
152 | ret $31,($23),1 | 153 | ret $31,($23),1 |
153 | .end ufunction | 154 | .end ufunction |
155 | EXPORT_SYMBOL(ufunction) | ||
154 | 156 | ||
155 | /* | 157 | /* |
156 | * Uhh.. Ugly signed division. I'd rather not have it at all, but | 158 | * Uhh.. Ugly signed division. I'd rather not have it at all, but |
@@ -193,3 +195,4 @@ sfunction: | |||
193 | addq $30,STACK,$30 | 195 | addq $30,STACK,$30 |
194 | ret $31,($23),1 | 196 | ret $31,($23),1 |
195 | .end sfunction | 197 | .end sfunction |
198 | EXPORT_SYMBOL(sfunction) | ||
diff --git a/arch/alpha/lib/ev6-clear_page.S b/arch/alpha/lib/ev6-clear_page.S index adf4f7be0e2b..abe99e69a194 100644 --- a/arch/alpha/lib/ev6-clear_page.S +++ b/arch/alpha/lib/ev6-clear_page.S | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Zero an entire page. | 4 | * Zero an entire page. |
5 | */ | 5 | */ |
6 | 6 | #include <asm/export.h> | |
7 | .text | 7 | .text |
8 | .align 4 | 8 | .align 4 |
9 | .global clear_page | 9 | .global clear_page |
@@ -52,3 +52,4 @@ clear_page: | |||
52 | nop | 52 | nop |
53 | 53 | ||
54 | .end clear_page | 54 | .end clear_page |
55 | EXPORT_SYMBOL(clear_page) | ||
diff --git a/arch/alpha/lib/ev6-clear_user.S b/arch/alpha/lib/ev6-clear_user.S index 4f42a16b7f53..05bef6b50598 100644 --- a/arch/alpha/lib/ev6-clear_user.S +++ b/arch/alpha/lib/ev6-clear_user.S | |||
@@ -43,6 +43,7 @@ | |||
43 | * want to leave a hole (and we also want to avoid repeating lots of work) | 43 | * want to leave a hole (and we also want to avoid repeating lots of work) |
44 | */ | 44 | */ |
45 | 45 | ||
46 | #include <asm/export.h> | ||
46 | /* Allow an exception for an insn; exit if we get one. */ | 47 | /* Allow an exception for an insn; exit if we get one. */ |
47 | #define EX(x,y...) \ | 48 | #define EX(x,y...) \ |
48 | 99: x,##y; \ | 49 | 99: x,##y; \ |
@@ -222,4 +223,4 @@ $exception: # Destination for exception recovery(?) | |||
222 | nop # .. E .. .. : | 223 | nop # .. E .. .. : |
223 | ret $31, ($28), 1 # L0 .. .. .. : L U L U | 224 | ret $31, ($28), 1 # L0 .. .. .. : L U L U |
224 | .end __do_clear_user | 225 | .end __do_clear_user |
225 | 226 | EXPORT_SYMBOL(__do_clear_user) | |
diff --git a/arch/alpha/lib/ev6-copy_page.S b/arch/alpha/lib/ev6-copy_page.S index b789db192754..77935061bddb 100644 --- a/arch/alpha/lib/ev6-copy_page.S +++ b/arch/alpha/lib/ev6-copy_page.S | |||
@@ -56,7 +56,7 @@ | |||
56 | destination pages are in the dcache, but it is my guess that this is | 56 | destination pages are in the dcache, but it is my guess that this is |
57 | less important than the dcache miss case. */ | 57 | less important than the dcache miss case. */ |
58 | 58 | ||
59 | 59 | #include <asm/export.h> | |
60 | .text | 60 | .text |
61 | .align 4 | 61 | .align 4 |
62 | .global copy_page | 62 | .global copy_page |
@@ -201,3 +201,4 @@ copy_page: | |||
201 | nop | 201 | nop |
202 | 202 | ||
203 | .end copy_page | 203 | .end copy_page |
204 | EXPORT_SYMBOL(copy_page) | ||
diff --git a/arch/alpha/lib/ev6-copy_user.S b/arch/alpha/lib/ev6-copy_user.S index db42ffe9c350..debcc3b6b704 100644 --- a/arch/alpha/lib/ev6-copy_user.S +++ b/arch/alpha/lib/ev6-copy_user.S | |||
@@ -37,6 +37,7 @@ | |||
37 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 | 37 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 |
38 | */ | 38 | */ |
39 | 39 | ||
40 | #include <asm/export.h> | ||
40 | /* Allow an exception for an insn; exit if we get one. */ | 41 | /* Allow an exception for an insn; exit if we get one. */ |
41 | #define EXI(x,y...) \ | 42 | #define EXI(x,y...) \ |
42 | 99: x,##y; \ | 43 | 99: x,##y; \ |
@@ -256,4 +257,4 @@ $101: | |||
256 | ret $31,($28),1 # L0 | 257 | ret $31,($28),1 # L0 |
257 | 258 | ||
258 | .end __copy_user | 259 | .end __copy_user |
259 | 260 | EXPORT_SYMBOL(__copy_user) | |
diff --git a/arch/alpha/lib/ev6-csum_ipv6_magic.S b/arch/alpha/lib/ev6-csum_ipv6_magic.S index fc0bc399f872..de62627ac4fe 100644 --- a/arch/alpha/lib/ev6-csum_ipv6_magic.S +++ b/arch/alpha/lib/ev6-csum_ipv6_magic.S | |||
@@ -52,6 +52,7 @@ | |||
52 | * may cause additional delay in rare cases (load-load replay traps). | 52 | * may cause additional delay in rare cases (load-load replay traps). |
53 | */ | 53 | */ |
54 | 54 | ||
55 | #include <asm/export.h> | ||
55 | .globl csum_ipv6_magic | 56 | .globl csum_ipv6_magic |
56 | .align 4 | 57 | .align 4 |
57 | .ent csum_ipv6_magic | 58 | .ent csum_ipv6_magic |
@@ -148,3 +149,4 @@ csum_ipv6_magic: | |||
148 | ret # L0 : L U L U | 149 | ret # L0 : L U L U |
149 | 150 | ||
150 | .end csum_ipv6_magic | 151 | .end csum_ipv6_magic |
152 | EXPORT_SYMBOL(csum_ipv6_magic) | ||
diff --git a/arch/alpha/lib/ev6-divide.S b/arch/alpha/lib/ev6-divide.S index 2a82b9be93fa..d18dc0e96e3d 100644 --- a/arch/alpha/lib/ev6-divide.S +++ b/arch/alpha/lib/ev6-divide.S | |||
@@ -55,6 +55,7 @@ | |||
55 | * Try not to change the actual algorithm if possible for consistency. | 55 | * Try not to change the actual algorithm if possible for consistency. |
56 | */ | 56 | */ |
57 | 57 | ||
58 | #include <asm/export.h> | ||
58 | #define halt .long 0 | 59 | #define halt .long 0 |
59 | 60 | ||
60 | /* | 61 | /* |
@@ -205,6 +206,7 @@ ufunction: | |||
205 | addq $30,STACK,$30 # E : | 206 | addq $30,STACK,$30 # E : |
206 | ret $31,($23),1 # L0 : L U U L | 207 | ret $31,($23),1 # L0 : L U U L |
207 | .end ufunction | 208 | .end ufunction |
209 | EXPORT_SYMBOL(ufunction) | ||
208 | 210 | ||
209 | /* | 211 | /* |
210 | * Uhh.. Ugly signed division. I'd rather not have it at all, but | 212 | * Uhh.. Ugly signed division. I'd rather not have it at all, but |
@@ -257,3 +259,4 @@ sfunction: | |||
257 | addq $30,STACK,$30 # E : | 259 | addq $30,STACK,$30 # E : |
258 | ret $31,($23),1 # L0 : L U U L | 260 | ret $31,($23),1 # L0 : L U U L |
259 | .end sfunction | 261 | .end sfunction |
262 | EXPORT_SYMBOL(sfunction) | ||
diff --git a/arch/alpha/lib/ev6-memchr.S b/arch/alpha/lib/ev6-memchr.S index 1a5f71b9d8b1..419adc53ccb4 100644 --- a/arch/alpha/lib/ev6-memchr.S +++ b/arch/alpha/lib/ev6-memchr.S | |||
@@ -27,7 +27,7 @@ | |||
27 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 | 27 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 |
28 | * Try not to change the actual algorithm if possible for consistency. | 28 | * Try not to change the actual algorithm if possible for consistency. |
29 | */ | 29 | */ |
30 | 30 | #include <asm/export.h> | |
31 | .set noreorder | 31 | .set noreorder |
32 | .set noat | 32 | .set noat |
33 | 33 | ||
@@ -189,3 +189,4 @@ $not_found: | |||
189 | ret # L0 : | 189 | ret # L0 : |
190 | 190 | ||
191 | .end memchr | 191 | .end memchr |
192 | EXPORT_SYMBOL(memchr) | ||
diff --git a/arch/alpha/lib/ev6-memcpy.S b/arch/alpha/lib/ev6-memcpy.S index 52b37b0f2af5..b19798b2efc0 100644 --- a/arch/alpha/lib/ev6-memcpy.S +++ b/arch/alpha/lib/ev6-memcpy.S | |||
@@ -19,7 +19,7 @@ | |||
19 | * Temp usage notes: | 19 | * Temp usage notes: |
20 | * $1,$2, - scratch | 20 | * $1,$2, - scratch |
21 | */ | 21 | */ |
22 | 22 | #include <asm/export.h> | |
23 | .set noreorder | 23 | .set noreorder |
24 | .set noat | 24 | .set noat |
25 | 25 | ||
@@ -242,6 +242,7 @@ $nomoredata: | |||
242 | nop # E : | 242 | nop # E : |
243 | 243 | ||
244 | .end memcpy | 244 | .end memcpy |
245 | EXPORT_SYMBOL(memcpy) | ||
245 | 246 | ||
246 | /* For backwards module compatibility. */ | 247 | /* For backwards module compatibility. */ |
247 | __memcpy = memcpy | 248 | __memcpy = memcpy |
diff --git a/arch/alpha/lib/ev6-memset.S b/arch/alpha/lib/ev6-memset.S index 356bb2fdd705..fed21c6893e8 100644 --- a/arch/alpha/lib/ev6-memset.S +++ b/arch/alpha/lib/ev6-memset.S | |||
@@ -26,7 +26,7 @@ | |||
26 | * as fixes will need to be made in multiple places. The performance gain | 26 | * as fixes will need to be made in multiple places. The performance gain |
27 | * is worth it. | 27 | * is worth it. |
28 | */ | 28 | */ |
29 | 29 | #include <asm/export.h> | |
30 | .set noat | 30 | .set noat |
31 | .set noreorder | 31 | .set noreorder |
32 | .text | 32 | .text |
@@ -229,6 +229,7 @@ end_b: | |||
229 | nop | 229 | nop |
230 | ret $31,($26),1 # L0 : | 230 | ret $31,($26),1 # L0 : |
231 | .end ___memset | 231 | .end ___memset |
232 | EXPORT_SYMBOL(___memset) | ||
232 | 233 | ||
233 | /* | 234 | /* |
234 | * This is the original body of code, prior to replication and | 235 | * This is the original body of code, prior to replication and |
@@ -406,6 +407,7 @@ end: | |||
406 | nop | 407 | nop |
407 | ret $31,($26),1 # L0 : | 408 | ret $31,($26),1 # L0 : |
408 | .end __constant_c_memset | 409 | .end __constant_c_memset |
410 | EXPORT_SYMBOL(__constant_c_memset) | ||
409 | 411 | ||
410 | /* | 412 | /* |
411 | * This is a replicant of the __constant_c_memset code, rescheduled | 413 | * This is a replicant of the __constant_c_memset code, rescheduled |
@@ -594,6 +596,9 @@ end_w: | |||
594 | ret $31,($26),1 # L0 : | 596 | ret $31,($26),1 # L0 : |
595 | 597 | ||
596 | .end __memsetw | 598 | .end __memsetw |
599 | EXPORT_SYMBOL(__memsetw) | ||
597 | 600 | ||
598 | memset = ___memset | 601 | memset = ___memset |
599 | __memset = ___memset | 602 | __memset = ___memset |
603 | EXPORT_SYMBOL(memset) | ||
604 | EXPORT_SYMBOL(__memset) | ||
diff --git a/arch/alpha/lib/ev67-strcat.S b/arch/alpha/lib/ev67-strcat.S index c426fe3ed72f..b69f60419be1 100644 --- a/arch/alpha/lib/ev67-strcat.S +++ b/arch/alpha/lib/ev67-strcat.S | |||
@@ -19,7 +19,7 @@ | |||
19 | * string once. | 19 | * string once. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | 22 | #include <asm/export.h> | |
23 | .text | 23 | .text |
24 | 24 | ||
25 | .align 4 | 25 | .align 4 |
@@ -52,3 +52,4 @@ $found: cttz $2, $3 # U0 : | |||
52 | br __stxcpy # L0 : | 52 | br __stxcpy # L0 : |
53 | 53 | ||
54 | .end strcat | 54 | .end strcat |
55 | EXPORT_SYMBOL(strcat) | ||
diff --git a/arch/alpha/lib/ev67-strchr.S b/arch/alpha/lib/ev67-strchr.S index fbb7b4ffade9..ea8f2f35db9c 100644 --- a/arch/alpha/lib/ev67-strchr.S +++ b/arch/alpha/lib/ev67-strchr.S | |||
@@ -15,7 +15,7 @@ | |||
15 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 | 15 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 |
16 | * Try not to change the actual algorithm if possible for consistency. | 16 | * Try not to change the actual algorithm if possible for consistency. |
17 | */ | 17 | */ |
18 | 18 | #include <asm/export.h> | |
19 | #include <asm/regdef.h> | 19 | #include <asm/regdef.h> |
20 | 20 | ||
21 | .set noreorder | 21 | .set noreorder |
@@ -86,3 +86,4 @@ $found: negq t0, t1 # E : clear all but least set bit | |||
86 | ret # L0 : | 86 | ret # L0 : |
87 | 87 | ||
88 | .end strchr | 88 | .end strchr |
89 | EXPORT_SYMBOL(strchr) | ||
diff --git a/arch/alpha/lib/ev67-strlen.S b/arch/alpha/lib/ev67-strlen.S index 503928072523..736fd41884a8 100644 --- a/arch/alpha/lib/ev67-strlen.S +++ b/arch/alpha/lib/ev67-strlen.S | |||
@@ -17,7 +17,7 @@ | |||
17 | * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 | 17 | * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 |
18 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 | 18 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 |
19 | */ | 19 | */ |
20 | 20 | #include <asm/export.h> | |
21 | .set noreorder | 21 | .set noreorder |
22 | .set noat | 22 | .set noat |
23 | 23 | ||
@@ -47,3 +47,4 @@ $found: | |||
47 | ret $31, ($26) # L0 : | 47 | ret $31, ($26) # L0 : |
48 | 48 | ||
49 | .end strlen | 49 | .end strlen |
50 | EXPORT_SYMBOL(strlen) | ||
diff --git a/arch/alpha/lib/ev67-strncat.S b/arch/alpha/lib/ev67-strncat.S index 4ae716cd2bfb..cd35cbade73a 100644 --- a/arch/alpha/lib/ev67-strncat.S +++ b/arch/alpha/lib/ev67-strncat.S | |||
@@ -20,7 +20,7 @@ | |||
20 | * Try not to change the actual algorithm if possible for consistency. | 20 | * Try not to change the actual algorithm if possible for consistency. |
21 | */ | 21 | */ |
22 | 22 | ||
23 | 23 | #include <asm/export.h> | |
24 | .text | 24 | .text |
25 | 25 | ||
26 | .align 4 | 26 | .align 4 |
@@ -92,3 +92,4 @@ $zerocount: | |||
92 | ret # L0 : | 92 | ret # L0 : |
93 | 93 | ||
94 | .end strncat | 94 | .end strncat |
95 | EXPORT_SYMBOL(strncat) | ||
diff --git a/arch/alpha/lib/ev67-strrchr.S b/arch/alpha/lib/ev67-strrchr.S index dd0d8c6b9f59..747455f0328c 100644 --- a/arch/alpha/lib/ev67-strrchr.S +++ b/arch/alpha/lib/ev67-strrchr.S | |||
@@ -18,7 +18,7 @@ | |||
18 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 | 18 | * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 |
19 | */ | 19 | */ |
20 | 20 | ||
21 | 21 | #include <asm/export.h> | |
22 | #include <asm/regdef.h> | 22 | #include <asm/regdef.h> |
23 | 23 | ||
24 | .set noreorder | 24 | .set noreorder |
@@ -107,3 +107,4 @@ $eos: | |||
107 | nop | 107 | nop |
108 | 108 | ||
109 | .end strrchr | 109 | .end strrchr |
110 | EXPORT_SYMBOL(strrchr) | ||
diff --git a/arch/alpha/lib/fpreg.c b/arch/alpha/lib/fpreg.c index 05017ba34c3c..4aa6dbfa14ee 100644 --- a/arch/alpha/lib/fpreg.c +++ b/arch/alpha/lib/fpreg.c | |||
@@ -4,6 +4,9 @@ | |||
4 | * (C) Copyright 1998 Linus Torvalds | 4 | * (C) Copyright 1998 Linus Torvalds |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <linux/compiler.h> | ||
8 | #include <linux/export.h> | ||
9 | |||
7 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) | 10 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
8 | #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); | 11 | #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); |
9 | #else | 12 | #else |
@@ -52,6 +55,7 @@ alpha_read_fp_reg (unsigned long reg) | |||
52 | } | 55 | } |
53 | return val; | 56 | return val; |
54 | } | 57 | } |
58 | EXPORT_SYMBOL(alpha_read_fp_reg); | ||
55 | 59 | ||
56 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) | 60 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
57 | #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); | 61 | #define LDT(reg,val) asm volatile ("itoft %0,$f"#reg : : "r"(val)); |
@@ -97,6 +101,7 @@ alpha_write_fp_reg (unsigned long reg, unsigned long val) | |||
97 | case 31: LDT(31, val); break; | 101 | case 31: LDT(31, val); break; |
98 | } | 102 | } |
99 | } | 103 | } |
104 | EXPORT_SYMBOL(alpha_write_fp_reg); | ||
100 | 105 | ||
101 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) | 106 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
102 | #define STS(reg,val) asm volatile ("ftois $f"#reg",%0" : "=r"(val)); | 107 | #define STS(reg,val) asm volatile ("ftois $f"#reg",%0" : "=r"(val)); |
@@ -146,6 +151,7 @@ alpha_read_fp_reg_s (unsigned long reg) | |||
146 | } | 151 | } |
147 | return val; | 152 | return val; |
148 | } | 153 | } |
154 | EXPORT_SYMBOL(alpha_read_fp_reg_s); | ||
149 | 155 | ||
150 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) | 156 | #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) |
151 | #define LDS(reg,val) asm volatile ("itofs %0,$f"#reg : : "r"(val)); | 157 | #define LDS(reg,val) asm volatile ("itofs %0,$f"#reg : : "r"(val)); |
@@ -191,3 +197,4 @@ alpha_write_fp_reg_s (unsigned long reg, unsigned long val) | |||
191 | case 31: LDS(31, val); break; | 197 | case 31: LDS(31, val); break; |
192 | } | 198 | } |
193 | } | 199 | } |
200 | EXPORT_SYMBOL(alpha_write_fp_reg_s); | ||
diff --git a/arch/alpha/lib/memchr.S b/arch/alpha/lib/memchr.S index 14427eeb555e..c13d3eca2e05 100644 --- a/arch/alpha/lib/memchr.S +++ b/arch/alpha/lib/memchr.S | |||
@@ -31,7 +31,7 @@ For correctness consider that: | |||
31 | - only minimum number of quadwords may be accessed | 31 | - only minimum number of quadwords may be accessed |
32 | - the third argument is an unsigned long | 32 | - the third argument is an unsigned long |
33 | */ | 33 | */ |
34 | 34 | #include <asm/export.h> | |
35 | .set noreorder | 35 | .set noreorder |
36 | .set noat | 36 | .set noat |
37 | 37 | ||
@@ -162,3 +162,4 @@ $not_found: | |||
162 | ret # .. e1 : | 162 | ret # .. e1 : |
163 | 163 | ||
164 | .end memchr | 164 | .end memchr |
165 | EXPORT_SYMBOL(memchr) | ||
diff --git a/arch/alpha/lib/memcpy.c b/arch/alpha/lib/memcpy.c index 64083fc73238..57d9291ad172 100644 --- a/arch/alpha/lib/memcpy.c +++ b/arch/alpha/lib/memcpy.c | |||
@@ -16,6 +16,7 @@ | |||
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include <linux/types.h> | 18 | #include <linux/types.h> |
19 | #include <linux/export.h> | ||
19 | 20 | ||
20 | /* | 21 | /* |
21 | * This should be done in one go with ldq_u*2/mask/stq_u. Do it | 22 | * This should be done in one go with ldq_u*2/mask/stq_u. Do it |
@@ -158,6 +159,4 @@ void * memcpy(void * dest, const void *src, size_t n) | |||
158 | __memcpy_unaligned_up ((unsigned long) dest, (unsigned long) src, n); | 159 | __memcpy_unaligned_up ((unsigned long) dest, (unsigned long) src, n); |
159 | return dest; | 160 | return dest; |
160 | } | 161 | } |
161 | 162 | EXPORT_SYMBOL(memcpy); | |
162 | /* For backward modules compatibility, define __memcpy. */ | ||
163 | asm("__memcpy = memcpy; .globl __memcpy"); | ||
diff --git a/arch/alpha/lib/memmove.S b/arch/alpha/lib/memmove.S index eb3b6e02242f..6872c85cb5e5 100644 --- a/arch/alpha/lib/memmove.S +++ b/arch/alpha/lib/memmove.S | |||
@@ -6,7 +6,7 @@ | |||
6 | * This is hand-massaged output from the original memcpy.c. We defer to | 6 | * This is hand-massaged output from the original memcpy.c. We defer to |
7 | * memcpy whenever possible; the backwards copy loops are not unrolled. | 7 | * memcpy whenever possible; the backwards copy loops are not unrolled. |
8 | */ | 8 | */ |
9 | 9 | #include <asm/export.h> | |
10 | .set noat | 10 | .set noat |
11 | .set noreorder | 11 | .set noreorder |
12 | .text | 12 | .text |
@@ -179,3 +179,4 @@ $egress: | |||
179 | nop | 179 | nop |
180 | 180 | ||
181 | .end memmove | 181 | .end memmove |
182 | EXPORT_SYMBOL(memmove) | ||
diff --git a/arch/alpha/lib/memset.S b/arch/alpha/lib/memset.S index 76ccc6d1f364..89a26f5e89de 100644 --- a/arch/alpha/lib/memset.S +++ b/arch/alpha/lib/memset.S | |||
@@ -13,7 +13,7 @@ | |||
13 | * The scheduling comments are according to the EV5 documentation (and done by | 13 | * The scheduling comments are according to the EV5 documentation (and done by |
14 | * hand, so they might well be incorrect, please do tell me about it..) | 14 | * hand, so they might well be incorrect, please do tell me about it..) |
15 | */ | 15 | */ |
16 | 16 | #include <asm/export.h> | |
17 | .set noat | 17 | .set noat |
18 | .set noreorder | 18 | .set noreorder |
19 | .text | 19 | .text |
@@ -106,6 +106,8 @@ within_one_quad: | |||
106 | end: | 106 | end: |
107 | ret $31,($26),1 /* E1 */ | 107 | ret $31,($26),1 /* E1 */ |
108 | .end ___memset | 108 | .end ___memset |
109 | EXPORT_SYMBOL(___memset) | ||
110 | EXPORT_SYMBOL(__constant_c_memset) | ||
109 | 111 | ||
110 | .align 5 | 112 | .align 5 |
111 | .ent __memsetw | 113 | .ent __memsetw |
@@ -122,6 +124,9 @@ __memsetw: | |||
122 | br __constant_c_memset /* .. E1 */ | 124 | br __constant_c_memset /* .. E1 */ |
123 | 125 | ||
124 | .end __memsetw | 126 | .end __memsetw |
127 | EXPORT_SYMBOL(__memsetw) | ||
125 | 128 | ||
126 | memset = ___memset | 129 | memset = ___memset |
127 | __memset = ___memset | 130 | __memset = ___memset |
131 | EXPORT_SYMBOL(memset) | ||
132 | EXPORT_SYMBOL(__memset) | ||
diff --git a/arch/alpha/lib/strcat.S b/arch/alpha/lib/strcat.S index 393f50384878..249837b03d4b 100644 --- a/arch/alpha/lib/strcat.S +++ b/arch/alpha/lib/strcat.S | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Append a null-terminated string from SRC to DST. | 5 | * Append a null-terminated string from SRC to DST. |
6 | */ | 6 | */ |
7 | #include <asm/export.h> | ||
7 | 8 | ||
8 | .text | 9 | .text |
9 | 10 | ||
@@ -50,3 +51,4 @@ $found: negq $2, $3 # clear all but least set bit | |||
50 | br __stxcpy | 51 | br __stxcpy |
51 | 52 | ||
52 | .end strcat | 53 | .end strcat |
54 | EXPORT_SYMBOL(strcat); | ||
diff --git a/arch/alpha/lib/strchr.S b/arch/alpha/lib/strchr.S index 011a175e8329..7412a173ea39 100644 --- a/arch/alpha/lib/strchr.S +++ b/arch/alpha/lib/strchr.S | |||
@@ -5,7 +5,7 @@ | |||
5 | * Return the address of a given character within a null-terminated | 5 | * Return the address of a given character within a null-terminated |
6 | * string, or null if it is not found. | 6 | * string, or null if it is not found. |
7 | */ | 7 | */ |
8 | 8 | #include <asm/export.h> | |
9 | #include <asm/regdef.h> | 9 | #include <asm/regdef.h> |
10 | 10 | ||
11 | .set noreorder | 11 | .set noreorder |
@@ -68,3 +68,4 @@ $retnull: | |||
68 | ret # .. e1 : | 68 | ret # .. e1 : |
69 | 69 | ||
70 | .end strchr | 70 | .end strchr |
71 | EXPORT_SYMBOL(strchr) | ||
diff --git a/arch/alpha/lib/strcpy.S b/arch/alpha/lib/strcpy.S index e0728e4ad21f..98deae1e4d08 100644 --- a/arch/alpha/lib/strcpy.S +++ b/arch/alpha/lib/strcpy.S | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copy a null-terminated string from SRC to DST. Return a pointer | 5 | * Copy a null-terminated string from SRC to DST. Return a pointer |
6 | * to the null-terminator in the source. | 6 | * to the null-terminator in the source. |
7 | */ | 7 | */ |
8 | 8 | #include <asm/export.h> | |
9 | .text | 9 | .text |
10 | 10 | ||
11 | .align 3 | 11 | .align 3 |
@@ -21,3 +21,4 @@ strcpy: | |||
21 | br __stxcpy # do the copy | 21 | br __stxcpy # do the copy |
22 | 22 | ||
23 | .end strcpy | 23 | .end strcpy |
24 | EXPORT_SYMBOL(strcpy) | ||
diff --git a/arch/alpha/lib/strlen.S b/arch/alpha/lib/strlen.S index fe63353de152..79c416f71bac 100644 --- a/arch/alpha/lib/strlen.S +++ b/arch/alpha/lib/strlen.S | |||
@@ -11,7 +11,7 @@ | |||
11 | * do this instead of the 9 instructions that | 11 | * do this instead of the 9 instructions that |
12 | * binary search needs). | 12 | * binary search needs). |
13 | */ | 13 | */ |
14 | 14 | #include <asm/export.h> | |
15 | .set noreorder | 15 | .set noreorder |
16 | .set noat | 16 | .set noat |
17 | 17 | ||
@@ -55,3 +55,4 @@ done: subq $0, $16, $0 | |||
55 | ret $31, ($26) | 55 | ret $31, ($26) |
56 | 56 | ||
57 | .end strlen | 57 | .end strlen |
58 | EXPORT_SYMBOL(strlen) | ||
diff --git a/arch/alpha/lib/strncat.S b/arch/alpha/lib/strncat.S index a8278163c972..6c29ea60869a 100644 --- a/arch/alpha/lib/strncat.S +++ b/arch/alpha/lib/strncat.S | |||
@@ -9,7 +9,7 @@ | |||
9 | * past count, whereas libc may write to count+1. This follows the generic | 9 | * past count, whereas libc may write to count+1. This follows the generic |
10 | * implementation in lib/string.c and is, IMHO, more sensible. | 10 | * implementation in lib/string.c and is, IMHO, more sensible. |
11 | */ | 11 | */ |
12 | 12 | #include <asm/export.h> | |
13 | .text | 13 | .text |
14 | 14 | ||
15 | .align 3 | 15 | .align 3 |
@@ -82,3 +82,4 @@ $zerocount: | |||
82 | ret | 82 | ret |
83 | 83 | ||
84 | .end strncat | 84 | .end strncat |
85 | EXPORT_SYMBOL(strncat) | ||
diff --git a/arch/alpha/lib/strncpy.S b/arch/alpha/lib/strncpy.S index a46f7f3ad8c7..e102cf1567dd 100644 --- a/arch/alpha/lib/strncpy.S +++ b/arch/alpha/lib/strncpy.S | |||
@@ -10,7 +10,7 @@ | |||
10 | * version has cropped that bit o' nastiness as well as assuming that | 10 | * version has cropped that bit o' nastiness as well as assuming that |
11 | * __stxncpy is in range of a branch. | 11 | * __stxncpy is in range of a branch. |
12 | */ | 12 | */ |
13 | 13 | #include <asm/export.h> | |
14 | .set noat | 14 | .set noat |
15 | .set noreorder | 15 | .set noreorder |
16 | 16 | ||
@@ -79,3 +79,4 @@ $zerolen: | |||
79 | ret | 79 | ret |
80 | 80 | ||
81 | .end strncpy | 81 | .end strncpy |
82 | EXPORT_SYMBOL(strncpy) | ||
diff --git a/arch/alpha/lib/strrchr.S b/arch/alpha/lib/strrchr.S index 1970dc07cfd1..4bc6cb4b9812 100644 --- a/arch/alpha/lib/strrchr.S +++ b/arch/alpha/lib/strrchr.S | |||
@@ -5,7 +5,7 @@ | |||
5 | * Return the address of the last occurrence of a given character | 5 | * Return the address of the last occurrence of a given character |
6 | * within a null-terminated string, or null if it is not found. | 6 | * within a null-terminated string, or null if it is not found. |
7 | */ | 7 | */ |
8 | 8 | #include <asm/export.h> | |
9 | #include <asm/regdef.h> | 9 | #include <asm/regdef.h> |
10 | 10 | ||
11 | .set noreorder | 11 | .set noreorder |
@@ -85,3 +85,4 @@ $retnull: | |||
85 | ret # .. e1 : | 85 | ret # .. e1 : |
86 | 86 | ||
87 | .end strrchr | 87 | .end strrchr |
88 | EXPORT_SYMBOL(strrchr) | ||