diff mbox series

[04/28] Remove HAVE_INLINED_SYSCALLS usage on generic implementations

Message ID 20201118195552.2687336-5-adhemerval.zanella@linaro.org
State New
Headers show
Series More Linux syscall refactor | expand

Commit Message

Adhemerval Zanella Nov. 18, 2020, 7:55 p.m. UTC
Checked on x86_64-linux-gnu.
---
 debug/read_chk.c     | 9 ---------
 debug/readlink_chk.c | 5 -----
 2 files changed, 14 deletions(-)
diff mbox series

Patch

diff --git a/debug/read_chk.c b/debug/read_chk.c
index abecb0ef23..5887c58d73 100644
--- a/debug/read_chk.c
+++ b/debug/read_chk.c
@@ -17,11 +17,6 @@ 
 
 #include <unistd.h>
 #include <sys/param.h>
-#ifdef HAVE_INLINED_SYSCALLS
-# include <errno.h>
-# include <sysdep.h>
-#endif
-
 
 ssize_t
 __read_chk (int fd, void *buf, size_t nbytes, size_t buflen)
@@ -29,9 +24,5 @@  __read_chk (int fd, void *buf, size_t nbytes, size_t buflen)
   if (nbytes > buflen)
     __chk_fail ();
 
-#ifdef HAVE_INLINED_SYSCALLS
-  return INLINE_SYSCALL (read, 3, fd, buf, nbytes);
-#else
   return __read (fd, buf, nbytes);
-#endif
 }
diff --git a/debug/readlink_chk.c b/debug/readlink_chk.c
index 853b142b2a..ade44ee0d1 100644
--- a/debug/readlink_chk.c
+++ b/debug/readlink_chk.c
@@ -17,11 +17,6 @@ 
 
 #include <unistd.h>
 #include <sys/param.h>
-#ifdef HAVE_INLINED_SYSCALLS
-# include <errno.h>
-# include <sysdep.h>
-#endif
-
 
 ssize_t
 __readlink_chk (const char *path, void *buf, size_t len, size_t buflen)