From 4875afe5526efe86478abe33e8b1320969d766d5 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Wed, 8 Jul 2020 07:49:40 -0700 Subject: RISC-V: Cleanup some of the sysdep.h code Remove a duplicate inclusion of which is already pulled via , and the inclusion of whose definition of `__set_errno' is not needed here. Reviewed-by: Maciej W. Rozycki --- sysdeps/unix/sysv/linux/riscv/sysdep.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 83e4adf6a2..fbb3a02bbd 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -22,6 +22,9 @@ #include #include +#undef SYS_ify +#define SYS_ify(syscall_name) __NR_##syscall_name + #ifdef __ASSEMBLER__ # include @@ -107,19 +110,7 @@ # undef ret_ERRVAL # define ret_ERRVAL ret -#endif /* __ASSEMBLER__ */ - -/* In order to get __set_errno() definition in INLINE_SYSCALL. */ -#ifndef __ASSEMBLER__ -# include -#endif - -#include - -#undef SYS_ify -#define SYS_ify(syscall_name) __NR_##syscall_name - -#ifndef __ASSEMBLER__ +#else /* !__ASSEMBLER__ */ # define VDSO_NAME "LINUX_4.15" # define VDSO_HASH 182943605 -- cgit 1.4.1