]> sourceware.org Git - glibc.git/commitdiff
RISC-V: Cleanup some of the sysdep.h code
authorAlistair Francis <alistair.francis@wdc.com>
Wed, 8 Jul 2020 14:49:40 +0000 (07:49 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 27 Aug 2020 15:17:41 +0000 (08:17 -0700)
Remove a duplicate inclusion of <sysdeps/unix/sysdep.h> which is already
pulled via <sysdeps/unix/sysv/linux/generic/sysdep.h>, and the inclusion
of <errno.h> whose definition of `__set_errno' is not needed here.

Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
sysdeps/unix/sysv/linux/riscv/sysdep.h

index 83e4adf6a23d22e4da48e4a245cb60fdd2667ca5..fbb3a02bbd6c7de937bbae3ee114f7fec7a539b8 100644 (file)
@@ -22,6 +22,9 @@
 #include <sysdeps/unix/sysv/linux/generic/sysdep.h>
 #include <tls.h>
 
+#undef SYS_ify
+#define SYS_ify(syscall_name)  __NR_##syscall_name
+
 #ifdef __ASSEMBLER__
 
 # include <sys/asm.h>
 # undef ret_ERRVAL
 # define ret_ERRVAL ret
 
-#endif /* __ASSEMBLER__ */
-
-/* In order to get __set_errno() definition in INLINE_SYSCALL.  */
-#ifndef __ASSEMBLER__
-# include <errno.h>
-#endif
-
-#include <sysdeps/unix/sysdep.h>
-
-#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
This page took 0.046029 seconds and 5 git commands to generate.