From 43cf00fd4cebe2d21b5cd9a89fed48e55a80250c Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 2 Jun 2016 16:51:57 -0600 Subject: [PATCH] arch: wire up preadv2/pwritev2 for more architectures Signed-off-by: Jens Axboe --- arch/arch-arm.h | 7 +++++++ arch/arch-ia64.h | 7 +++++++ arch/arch-s390.h | 7 +++++++ arch/arch-sparc.h | 7 +++++++ arch/arch-sparc64.h | 7 +++++++ 5 files changed, 35 insertions(+) diff --git a/arch/arch-arm.h b/arch/arch-arm.h index 93268d2f..57d94881 100644 --- a/arch/arch-arm.h +++ b/arch/arch-arm.h @@ -18,6 +18,13 @@ #define __NR_sys_vmsplice 343 #endif +#ifndef __NR_preadv2 +#define __NR_preadv2 392 +#endif +#ifndef __NR_pwritev2 +#define __NR_pwritev2 393 +#endif + #if defined (__ARM_ARCH_4__) || defined (__ARM_ARCH_4T__) \ || defined (__ARM_ARCH_5__) || defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5E__)\ || defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) \ diff --git a/arch/arch-ia64.h b/arch/arch-ia64.h index 8e8dd7fd..7cdeefcf 100644 --- a/arch/arch-ia64.h +++ b/arch/arch-ia64.h @@ -18,6 +18,13 @@ #define __NR_sys_vmsplice 1302 #endif +#ifndef __NR_preadv2 +#define __NR_preadv2 1348 +#endif +#ifndef __NR_pwritev2 +#define __NR_pwritev2 1349 +#endif + #define nop asm volatile ("hint @pause" ::: "memory"); #define read_barrier() asm volatile ("mf" ::: "memory") #define write_barrier() asm volatile ("mf" ::: "memory") diff --git a/arch/arch-s390.h b/arch/arch-s390.h index cc7a1d10..71beb7d6 100644 --- a/arch/arch-s390.h +++ b/arch/arch-s390.h @@ -18,6 +18,13 @@ #define __NR_sys_vmsplice 309 #endif +#ifndef __NR_preadv2 +#define __NR_preadv2 376 +#endif +#ifndef __NR_pwritev2 +#define __NR_pwritev2 377 +#endif + #define nop asm volatile("nop" : : : "memory") #define read_barrier() asm volatile("bcr 15,0" : : : "memory") #define write_barrier() asm volatile("bcr 15,0" : : : "memory") diff --git a/arch/arch-sparc.h b/arch/arch-sparc.h index fe47b803..d0df8831 100644 --- a/arch/arch-sparc.h +++ b/arch/arch-sparc.h @@ -18,6 +18,13 @@ #define __NR_sys_vmsplice 25 #endif +#ifndef __NR_preadv2 +#define __NR_preadv2 358 +#endif +#ifndef __NR_pwritev2 +#define __NR_pwritev2 359 +#endif + #define nop do { } while (0) #define read_barrier() __asm__ __volatile__ ("" : : : "memory") diff --git a/arch/arch-sparc64.h b/arch/arch-sparc64.h index e793ae52..5c4e6490 100644 --- a/arch/arch-sparc64.h +++ b/arch/arch-sparc64.h @@ -18,6 +18,13 @@ #define __NR_sys_vmsplice 25 #endif +#ifndef __NR_preadv2 +#define __NR_preadv2 358 +#endif +#ifndef __NR_pwritev2 +#define __NR_pwritev2 359 +#endif + #define nop do { } while (0) #define membar_safe(type) \ -- 2.25.1