Skip to content

Commit

Permalink
alpha: move exports to actual definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Aug 8, 2016
1 parent 784d569 commit 00fc0e0
Show file tree
Hide file tree
Showing 41 changed files with 99 additions and 131 deletions.
1 change: 1 addition & 0 deletions arch/alpha/include/asm/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
generic-y += clkdev.h
generic-y += cputime.h
generic-y += exec.h
generic-y += export.h
generic-y += irq_work.h
generic-y += mcs_spinlock.h
generic-y += mm-arch-hooks.h
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ccflags-y := -Wno-sign-compare

obj-y := entry.o traps.o process.o osf_sys.o irq.o \
irq_alpha.o signal.o setup.o ptrace.o time.o \
alpha_ksyms.o systbls.o err_common.o io.o
systbls.o err_common.o io.o

obj-$(CONFIG_VGA_HOSE) += console.o
obj-$(CONFIG_SMP) += smp.o
Expand Down
102 changes: 0 additions & 102 deletions arch/alpha/kernel/alpha_ksyms.c

This file was deleted.

6 changes: 4 additions & 2 deletions arch/alpha/kernel/machvec_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,11 @@
else beforehand. Fine. We'll do it ourselves. */
#if 0
#define ALIAS_MV(system) \
struct alpha_machine_vector alpha_mv __attribute__((alias(#system "_mv")));
struct alpha_machine_vector alpha_mv __attribute__((alias(#system "_mv"))); \
EXPORT_SYMBOL(alpha_mv);
#else
#define ALIAS_MV(system) \
asm(".global alpha_mv\nalpha_mv = " #system "_mv");
asm(".global alpha_mv\nalpha_mv = " #system "_mv"); \
EXPORT_SYMBOL(alpha_mv);
#endif
#endif /* GENERIC */
1 change: 1 addition & 0 deletions arch/alpha/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ unsigned long alpha_agpgart_size = DEFAULT_AGP_APER_SIZE;

#ifdef CONFIG_ALPHA_GENERIC
struct alpha_machine_vector alpha_mv;
EXPORT_SYMBOL(alpha_mv);
#endif

#ifndef alpha_using_srm
Expand Down
5 changes: 5 additions & 0 deletions arch/alpha/lib/callback_srm.S
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/

#include <asm/console.h>
#include <asm/export.h>

.text
#define HWRPB_CRB_OFFSET 0xc0
Expand Down Expand Up @@ -92,6 +93,10 @@ CALLBACK(reset_env, CCB_RESET_ENV, 4)
CALLBACK(save_env, CCB_SAVE_ENV, 1)
CALLBACK(pswitch, CCB_PSWITCH, 3)
CALLBACK(bios_emul, CCB_BIOS_EMUL, 5)

EXPORT_SYMBOL(callback_getenv)
EXPORT_SYMBOL(callback_setenv)
EXPORT_SYMBOL(callback_save_env)

.data
__alpha_using_srm: # For use by bootpheader
Expand Down
3 changes: 3 additions & 0 deletions arch/alpha/lib/checksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
(__force u64)saddr + (__force u64)daddr +
(__force u64)sum + ((len + proto) << 8));
}
EXPORT_SYMBOL(csum_tcpudp_magic);

__wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
__u32 len, __u8 proto, __wsum sum)
Expand Down Expand Up @@ -144,6 +145,7 @@ __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
{
return (__force __sum16)~do_csum(iph,ihl*4);
}
EXPORT_SYMBOL(ip_fast_csum);

/*
* computes the checksum of a memory block at buff, length len,
Expand Down Expand Up @@ -178,3 +180,4 @@ __sum16 ip_compute_csum(const void *buff, int len)
{
return (__force __sum16)~from64to16(do_csum(buff,len));
}
EXPORT_SYMBOL(ip_compute_csum);
3 changes: 2 additions & 1 deletion arch/alpha/lib/clear_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Zero an entire page.
*/

#include <asm/export.h>
.text
.align 4
.global clear_page
Expand Down Expand Up @@ -37,3 +37,4 @@ clear_page:
nop

.end clear_page
EXPORT_SYMBOL(clear_page)
2 changes: 2 additions & 0 deletions arch/alpha/lib/clear_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Clobbers:
* $1,$2,$3,$4,$5,$6
*/
#include <asm/export.h>

/* Allow an exception for an insn; exit if we get one. */
#define EX(x,y...) \
Expand Down Expand Up @@ -111,3 +112,4 @@ $exception:
ret $31, ($28), 1 # .. e1 :

.end __do_clear_user
EXPORT_SYMBOL(__do_clear_user)
3 changes: 2 additions & 1 deletion arch/alpha/lib/copy_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Copy an entire page.
*/

#include <asm/export.h>
.text
.align 4
.global copy_page
Expand Down Expand Up @@ -47,3 +47,4 @@ copy_page:
nop

.end copy_page
EXPORT_SYMBOL(copy_page)
3 changes: 3 additions & 0 deletions arch/alpha/lib/copy_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
* $1,$2,$3,$4,$5,$6,$7
*/

#include <asm/export.h>

/* Allow an exception for an insn; exit if we get one. */
#define EXI(x,y...) \
99: x,##y; \
Expand Down Expand Up @@ -143,3 +145,4 @@ $101:
ret $31,($28),1

.end __copy_user
EXPORT_SYMBOL(__copy_user)
2 changes: 2 additions & 0 deletions arch/alpha/lib/csum_ipv6_magic.S
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* added by Ivan Kokshaysky <ink@jurassic.park.msu.ru>
*/

#include <asm/export.h>
.globl csum_ipv6_magic
.align 4
.ent csum_ipv6_magic
Expand Down Expand Up @@ -113,3 +114,4 @@ csum_ipv6_magic:
ret # .. e1 :

.end csum_ipv6_magic
EXPORT_SYMBOL(csum_ipv6_magic)
2 changes: 2 additions & 0 deletions arch/alpha/lib/csum_partial_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ csum_partial_copy_from_user(const void __user *src, void *dst, int len,
}
return (__force __wsum)checksum;
}
EXPORT_SYMBOL(csum_partial_copy_from_user);

__wsum
csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
Expand All @@ -386,3 +387,4 @@ csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
set_fs(oldfs);
return checksum;
}
EXPORT_SYMBOL(csum_partial_copy_nocheck);
2 changes: 2 additions & 0 deletions arch/alpha/lib/dec_and_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <linux/spinlock.h>
#include <linux/atomic.h>
#include <linux/export.h>

asm (".text \n\
.global _atomic_dec_and_lock \n\
Expand Down Expand Up @@ -39,3 +40,4 @@ static int __used atomic_dec_and_lock_1(atomic_t *atomic, spinlock_t *lock)
spin_unlock(lock);
return 0;
}
EXPORT_SYMBOL(_atomic_dec_and_lock);
3 changes: 3 additions & 0 deletions arch/alpha/lib/divide.S
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* $28 - compare status
*/

#include <asm/export.h>
#define halt .long 0

/*
Expand Down Expand Up @@ -151,6 +152,7 @@ ufunction:
addq $30,STACK,$30
ret $31,($23),1
.end ufunction
EXPORT_SYMBOL(ufunction)

/*
* Uhh.. Ugly signed division. I'd rather not have it at all, but
Expand Down Expand Up @@ -193,3 +195,4 @@ sfunction:
addq $30,STACK,$30
ret $31,($23),1
.end sfunction
EXPORT_SYMBOL(sfunction)
3 changes: 2 additions & 1 deletion arch/alpha/lib/ev6-clear_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Zero an entire page.
*/

#include <asm/export.h>
.text
.align 4
.global clear_page
Expand Down Expand Up @@ -52,3 +52,4 @@ clear_page:
nop

.end clear_page
EXPORT_SYMBOL(clear_page)
3 changes: 2 additions & 1 deletion arch/alpha/lib/ev6-clear_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
* want to leave a hole (and we also want to avoid repeating lots of work)
*/

#include <asm/export.h>
/* Allow an exception for an insn; exit if we get one. */
#define EX(x,y...) \
99: x,##y; \
Expand Down Expand Up @@ -222,4 +223,4 @@ $exception: # Destination for exception recovery(?)
nop # .. E .. .. :
ret $31, ($28), 1 # L0 .. .. .. : L U L U
.end __do_clear_user

EXPORT_SYMBOL(__do_clear_user)
3 changes: 2 additions & 1 deletion arch/alpha/lib/ev6-copy_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
destination pages are in the dcache, but it is my guess that this is
less important than the dcache miss case. */


#include <asm/export.h>
.text
.align 4
.global copy_page
Expand Down Expand Up @@ -201,3 +201,4 @@ copy_page:
nop

.end copy_page
EXPORT_SYMBOL(copy_page)
3 changes: 2 additions & 1 deletion arch/alpha/lib/ev6-copy_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1
*/

#include <asm/export.h>
/* Allow an exception for an insn; exit if we get one. */
#define EXI(x,y...) \
99: x,##y; \
Expand Down Expand Up @@ -256,4 +257,4 @@ $101:
ret $31,($28),1 # L0

.end __copy_user

EXPORT_SYMBOL(__copy_user)
2 changes: 2 additions & 0 deletions arch/alpha/lib/ev6-csum_ipv6_magic.S
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
* may cause additional delay in rare cases (load-load replay traps).
*/

#include <asm/export.h>
.globl csum_ipv6_magic
.align 4
.ent csum_ipv6_magic
Expand Down Expand Up @@ -148,3 +149,4 @@ csum_ipv6_magic:
ret # L0 : L U L U

.end csum_ipv6_magic
EXPORT_SYMBOL(csum_ipv6_magic)
3 changes: 3 additions & 0 deletions arch/alpha/lib/ev6-divide.S
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
* Try not to change the actual algorithm if possible for consistency.
*/

#include <asm/export.h>
#define halt .long 0

/*
Expand Down Expand Up @@ -205,6 +206,7 @@ ufunction:
addq $30,STACK,$30 # E :
ret $31,($23),1 # L0 : L U U L
.end ufunction
EXPORT_SYMBOL(ufunction)

/*
* Uhh.. Ugly signed division. I'd rather not have it at all, but
Expand Down Expand Up @@ -257,3 +259,4 @@ sfunction:
addq $30,STACK,$30 # E :
ret $31,($23),1 # L0 : L U U L
.end sfunction
EXPORT_SYMBOL(sfunction)
Loading

0 comments on commit 00fc0e0

Please sign in to comment.