From: Guillem Jover Date: Tue, 26 Feb 2019 00:45:15 +0000 (+0100) Subject: [PATCH 3/7] harness: Make RISC-V use SYS_eventfd2 instead of SYS_eventfd X-Git-Tag: archive/raspbian/0.3.112-13+rpi1~1^2^2^2~19 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9cc33b3ce9a7d63979814aa6decc078d98f66429;p=libaio.git [PATCH 3/7] harness: Make RISC-V use SYS_eventfd2 instead of SYS_eventfd This is a recent architecture and as such does not provide legacy support for SYS_eventfd. Declare that we need to use the new syscall. Signed-off-by: Guillem Jover Gbp-Pq: Name 0003-harness-Make-RISC-V-use-SYS_eventfd2-instead-of-SYS_.patch --- diff --git a/harness/cases/16.t b/harness/cases/16.t index 5a546ff..b36bbd2 100644 --- a/harness/cases/16.t +++ b/harness/cases/16.t @@ -18,12 +18,12 @@ #define SYS_eventfd 318 #elif defined(__alpha__) #define SYS_eventfd 478 -#elif defined(__aarch64__) -/* arm64 does not implement eventfd, only eventfd2 */ +#elif defined(__aarch64__) || defined(__riscv) +/* arm64 and riscv do not implement eventfd, only eventfd2 */ #define USE_EVENTFD2 #ifndef SYS_eventfd2 #define SYS_eventfd2 19 -#endif /* __aarch64__ */ +#endif /* __aarch64__ || __riscv */ #else #error define SYS_eventfd for your arch! #endif