[21/26] Linux: open_by_handle_at syscall number is always available

Message ID 81d33619b5b5e9e6e62700968393407b5a5aa347.1581279333.git.fweimer@redhat.com
State Committed
Delegated to: Carlos O'Donell
Headers

Commit Message

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

Comments

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

LGTM, thanks. 

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

> ---
>  sysdeps/unix/sysv/linux/open_by_handle_at.c | 9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/open_by_handle_at.c b/sysdeps/unix/sysv/linux/open_by_handle_at.c
> index f682d8cfe4..6c9c53291a 100644
> --- a/sysdeps/unix/sysv/linux/open_by_handle_at.c
> +++ b/sysdeps/unix/sysv/linux/open_by_handle_at.c
> @@ -24,14 +24,5 @@
>  int
>  open_by_handle_at (int mount_fd, struct file_handle *handle, int flags)
>  {
> -#ifdef __NR_open_by_handle_at
>    return SYSCALL_CANCEL (open_by_handle_at, mount_fd, handle, flags);
> -#else
> -  __set_errno (ENOSYS);
> -  return -1;
> -#endif
>  }
> -
> -#ifndef __NR_open_by_handle_at
> -stub_warning (open_by_handle_at)
> -#endif
>
  

Patch

diff --git a/sysdeps/unix/sysv/linux/open_by_handle_at.c b/sysdeps/unix/sysv/linux/open_by_handle_at.c
index f682d8cfe4..6c9c53291a 100644
--- a/sysdeps/unix/sysv/linux/open_by_handle_at.c
+++ b/sysdeps/unix/sysv/linux/open_by_handle_at.c
@@ -24,14 +24,5 @@ 
 int
 open_by_handle_at (int mount_fd, struct file_handle *handle, int flags)
 {
-#ifdef __NR_open_by_handle_at
   return SYSCALL_CANCEL (open_by_handle_at, mount_fd, handle, flags);
-#else
-  __set_errno (ENOSYS);
-  return -1;
-#endif
 }
-
-#ifndef __NR_open_by_handle_at
-stub_warning (open_by_handle_at)
-#endif