]> sourceware.org Git - glibc.git/commitdiff
Linux: pciconfig_iobase syscall number is always available on alpha
authorFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:20:59 +0000 (12:20 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 3 Mar 2020 11:20:59 +0000 (12:20 +0100)
Due to the built-in tables, __NR_pciconfig_iobase is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/alpha/ioperm.c

index cf775674b4bfe45d61b637e7095c7d170cb75ea6..aa8ea3c8b1397b73301362329e1709513fc08014 100644 (file)
@@ -537,7 +537,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)
     {
@@ -579,7 +578,6 @@ init_iosys (void)
 
       return 0;
     }
-#endif
 
   /* Second, collect the contents of /etc/alpha_systype or /proc/cpuinfo.  */
 
This page took 0.048716 seconds and 5 git commands to generate.