diff mbox series

[19/26] Linux: pciconfig_iobase syscall number is always available on alpha

Message ID e0b25191ab5e26e43659e8793ad7621956606635.1581279333.git.fweimer@redhat.com
State New
Headers show
Series Linux cleanups enabled by built-in system call tables | expand

Commit Message

Florian Weimer Feb. 9, 2020, 8:21 p.m. UTC
Due to the built-in tables, __NR_pciconfig_iobase is always defined.
---
 sysdeps/unix/sysv/linux/alpha/ioperm.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Adhemerval Zanella Netto Feb. 27, 2020, 11:31 p.m. UTC | #1
On 09/02/2020 17:21, Florian Weimer wrote:
> Due to the built-in tables, __NR_pciconfig_iobase is always defined.

LGTM, thanks. 

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>

> ---
>  sysdeps/unix/sysv/linux/alpha/ioperm.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c
> index 086c782b9f..1f9c38db98 100644
> --- a/sysdeps/unix/sysv/linux/alpha/ioperm.c
> +++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c
> @@ -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.  */
>  
>
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c
index 086c782b9f..1f9c38db98 100644
--- a/sysdeps/unix/sysv/linux/alpha/ioperm.c
+++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c
@@ -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.  */