]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Linux: pciconfig_iobase syscall number is always available on alpha
authorFlorian Weimer <fweimer@redhat.com>
Sun, 9 Feb 2020 15:37:39 +0000 (16:37 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Sun, 9 Feb 2020 16:39:40 +0000 (17:39 +0100)
Due to the built-in tables, __NR_pciconfig_iobase is always defined.

sysdeps/unix/sysv/linux/alpha/ioperm.c

index 086c782b9f5c8952c9ffe0ca2bd6bb22ce09983e..1f9c38db983496785997528d5bbf2a23d65512f5 100644 (file)
@@ -542,7 +542,6 @@ init_iosys (void)
 
   /* First try the pciconfig_iobase syscall added to 2.2.15 and 2.3.99.  */
 
-#ifdef __NR_pciconfig_iobase
   addr = __pciconfig_iobase (IOBASE_DENSE_MEM, 0, 0);
   if (addr != -1)
     {
@@ -584,7 +583,6 @@ init_iosys (void)
 
       return 0;
     }
-#endif
 
   /* Second, collect the contents of /etc/alpha_systype or /proc/cpuinfo.  */