[v2] linux: Drop useless include from fstatat.c

Message ID 20221101213608.22458-1-aurelien@aurel32.net
State Committed
Commit f4ce325dfc50e13cf8240424fa0561fca78e72e7
Headers
Series [v2] linux: Drop useless include from fstatat.c |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Aurelien Jarno Nov. 1, 2022, 9:36 p.m. UTC
  It is a left-over from previous refactorings.
---
 sysdeps/unix/sysv/linux/fstatat.c | 2 --
 1 file changed, 2 deletions(-)

Sorry, I failed to properly test v1, we need to include <kernel_stat.h>
to get XSTAT_IS_XSTAT64 (which is not the case on the MIPSn64 patch).
  

Comments

Adhemerval Zanella Nov. 2, 2022, 5:18 p.m. UTC | #1
On 01/11/22 18:36, Aurelien Jarno wrote:
> It is a left-over from previous refactorings.

LGTM, thanks.

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

> ---
>  sysdeps/unix/sysv/linux/fstatat.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> Sorry, I failed to properly test v1, we need to include <kernel_stat.h>
> to get XSTAT_IS_XSTAT64 (which is not the case on the MIPSn64 patch).
> 
> diff --git a/sysdeps/unix/sysv/linux/fstatat.c b/sysdeps/unix/sysv/linux/fstatat.c
> index 055fb4762e..8926eed244 100644
> --- a/sysdeps/unix/sysv/linux/fstatat.c
> +++ b/sysdeps/unix/sysv/linux/fstatat.c
> @@ -21,8 +21,6 @@
>  #include <sysdep.h>
>  
>  #if !XSTAT_IS_XSTAT64
> -# include <kstat_cp.h>
> -
>  int
>  __fstatat (int fd, const char *file, struct stat *buf, int flag)
>  {
  

Patch

diff --git a/sysdeps/unix/sysv/linux/fstatat.c b/sysdeps/unix/sysv/linux/fstatat.c
index 055fb4762e..8926eed244 100644
--- a/sysdeps/unix/sysv/linux/fstatat.c
+++ b/sysdeps/unix/sysv/linux/fstatat.c
@@ -21,8 +21,6 @@ 
 #include <sysdep.h>
 
 #if !XSTAT_IS_XSTAT64
-# include <kstat_cp.h>
-
 int
 __fstatat (int fd, const char *file, struct stat *buf, int flag)
 {