Patchwork [25/26] m68k: getpagesize syscall number is always available

login
register
mail settings
Submitter Florian Weimer
Date Feb. 9, 2020, 8:21 p.m.
Message ID <1967bfd36b28bf0934f8f9abf6a2d5d6340cb980.1581279333.git.fweimer@redhat.com>
Download mbox | patch
Permalink /patch/37829/
State New
Headers show

Comments

Florian Weimer - Feb. 9, 2020, 8:21 p.m.
Due to the built-in tables, __NR_getpagesize is always defined.
---
 sysdeps/unix/sysv/linux/m68k/getpagesize.c | 4 ----
 1 file changed, 4 deletions(-)

Patch

diff --git a/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
index ad6559320e..2e419af0e5 100644
--- a/sysdeps/unix/sysv/linux/m68k/getpagesize.c
+++ b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
@@ -28,20 +28,16 @@ 
 int
 __getpagesize (void)
 {
-#ifdef __NR_getpagesize
   int result;
-#endif
 
   if (GLRO(dl_pagesize) != 0)
     return GLRO(dl_pagesize);
 
-#ifdef __NR_getpagesize
   INTERNAL_SYSCALL_DECL (err);
   result = INTERNAL_SYSCALL (getpagesize, err, 0);
   /* The only possible error is ENOSYS.  */
   if (!INTERNAL_SYSCALL_ERROR_P (result, err))
     return result;
-#endif
 
   return 4096;
 }