checksyscalls: ignore fstat to silence build warning on LoongArch

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/1678175940-20872-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Suggested-by: WANG Xuerui <kernel@xen0n.name>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
Tiezhu Yang 2023-03-07 15:59:00 +08:00 committed by Andrew Morton
parent 0035870002
commit 12871a1546
1 changed files with 3 additions and 1 deletions

View File

@ -114,7 +114,6 @@ cat << EOF
#define __IGNORE_truncate #define __IGNORE_truncate
#define __IGNORE_stat #define __IGNORE_stat
#define __IGNORE_lstat #define __IGNORE_lstat
#define __IGNORE_fstat
#define __IGNORE_fcntl #define __IGNORE_fcntl
#define __IGNORE_fadvise64 #define __IGNORE_fadvise64
#define __IGNORE_newfstatat #define __IGNORE_newfstatat
@ -255,6 +254,9 @@ cat << EOF
/* 64-bit ports never needed these, and new 32-bit ports can use statx */ /* 64-bit ports never needed these, and new 32-bit ports can use statx */
#define __IGNORE_fstat64 #define __IGNORE_fstat64
#define __IGNORE_fstatat64 #define __IGNORE_fstatat64
/* Newer ports are not required to provide fstat in favor of statx */
#define __IGNORE_fstat
EOF EOF
} }