diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-01-25 15:22:01 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2024-05-03 22:09:30 +0200 |
commit | 6e8d0237857c6d434de9475aed8cee842b204bd7 (patch) | |
tree | 11cc8ce0cc94e9ddcdc4921ce7561c9cccb24550 /arch/alpha/lib | |
parent | alpha: sys_sio: fix misspelled ifdefs (diff) | |
download | linux-6e8d0237857c6d434de9475aed8cee842b204bd7.tar.xz linux-6e8d0237857c6d434de9475aed8cee842b204bd7.zip |
alpha: missing includes
... and missing externs in proto.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/alpha/lib')
-rw-r--r-- | arch/alpha/lib/checksum.c | 1 | ||||
-rw-r--r-- | arch/alpha/lib/fpreg.c | 1 | ||||
-rw-r--r-- | arch/alpha/lib/memcpy.c | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/arch/alpha/lib/checksum.c b/arch/alpha/lib/checksum.c index 3f35c3ed6948..17fa230baeef 100644 --- a/arch/alpha/lib/checksum.c +++ b/arch/alpha/lib/checksum.c @@ -12,6 +12,7 @@ #include <linux/module.h> #include <linux/string.h> +#include <net/checksum.h> #include <asm/byteorder.h> diff --git a/arch/alpha/lib/fpreg.c b/arch/alpha/lib/fpreg.c index 7c08b225261c..eee11fb4c7f1 100644 --- a/arch/alpha/lib/fpreg.c +++ b/arch/alpha/lib/fpreg.c @@ -9,6 +9,7 @@ #include <linux/export.h> #include <linux/preempt.h> #include <asm/thread_info.h> +#include <asm/fpu.h> #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) #define STT(reg,val) asm volatile ("ftoit $f"#reg",%0" : "=r"(val)); diff --git a/arch/alpha/lib/memcpy.c b/arch/alpha/lib/memcpy.c index cbac3dc6d963..78b6850a9d53 100644 --- a/arch/alpha/lib/memcpy.c +++ b/arch/alpha/lib/memcpy.c @@ -18,6 +18,7 @@ #include <linux/types.h> #include <linux/export.h> +#include <linux/string.h> /* * This should be done in one go with ldq_u*2/mask/stq_u. Do it @@ -150,6 +151,8 @@ static inline void __memcpy_aligned_dn (unsigned long d, unsigned long s, DO_REST_ALIGNED_DN(d,s,n); } +#undef memcpy + void * memcpy(void * dest, const void *src, size_t n) { if (!(((unsigned long) dest ^ (unsigned long) src) & 7)) { |