summaryrefslogtreecommitdiff
path: root/scripts/checksyscalls.sh
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmerdabbelt@google.com>2021-10-03 02:57:13 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-10-08 03:16:28 +0300
commit3ef6ca4f354c53abf263cbeb51e7272523c294d8 (patch)
treeacba2add0874d4415612c4e5716a6275683f3f11 /scripts/checksyscalls.sh
parentbb8958d5dc79acbd071397abb57b8756375fe1ce (diff)
downloadlinux-3ef6ca4f354c53abf263cbeb51e7272523c294d8.tar.xz
checksyscalls: Unconditionally ignore fstat{,at}64
These can be replaced by statx(). Since rv32 has a 64-bit time_t we just never ended up with them in the first place. This is now an error due to -Werror. Suggested-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'scripts/checksyscalls.sh')
-rwxr-xr-xscripts/checksyscalls.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh
index fd9777f63f14..9dbab13329fa 100755
--- a/scripts/checksyscalls.sh
+++ b/scripts/checksyscalls.sh
@@ -82,10 +82,8 @@ cat << EOF
#define __IGNORE_truncate64
#define __IGNORE_stat64
#define __IGNORE_lstat64
-#define __IGNORE_fstat64
#define __IGNORE_fcntl64
#define __IGNORE_fadvise64_64
-#define __IGNORE_fstatat64
#define __IGNORE_fstatfs64
#define __IGNORE_statfs64
#define __IGNORE_llseek
@@ -253,6 +251,10 @@ cat << EOF
#define __IGNORE_getpmsg
#define __IGNORE_putpmsg
#define __IGNORE_vserver
+
+/* 64-bit ports never needed these, and new 32-bit ports can use statx */
+#define __IGNORE_fstat64
+#define __IGNORE_fstatat64
EOF
}