Skip to content

Commit

Permalink
checksyscalls: ignore fstat to silence build warning on LoongArch
Browse files Browse the repository at this point in the history
fstat is replaced by statx on the new architecture, so an exception is
added to the checksyscalls script to silence the following build warning
on LoongArch:

  CALL    scripts/checksyscalls.sh
<stdin>:569:2: warning: #warning syscall fstat not implemented [-Wcpp]

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Tiezhu Yang <[email protected]>
Suggested-by: WANG Xuerui <[email protected]>
Suggested-by: Arnd Bergmann <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
seehearfeel authored and akpm00 committed Mar 24, 2023
1 parent 0035870 commit 12871a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/checksyscalls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ cat << EOF
#define __IGNORE_truncate
#define __IGNORE_stat
#define __IGNORE_lstat
#define __IGNORE_fstat
#define __IGNORE_fcntl
#define __IGNORE_fadvise64
#define __IGNORE_newfstatat
Expand Down Expand Up @@ -255,6 +254,9 @@ cat << EOF
/* 64-bit ports never needed these, and new 32-bit ports can use statx */
#define __IGNORE_fstat64
#define __IGNORE_fstatat64
/* Newer ports are not required to provide fstat in favor of statx */
#define __IGNORE_fstat
EOF
}

Expand Down

0 comments on commit 12871a1

Please sign in to comment.