]> git.baikalelectronics.ru Git - kernel.git/commitdiff
checksyscalls: Unconditionally ignore fstat{,at}64
authorPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 2 Oct 2021 23:57:13 +0000 (16:57 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 8 Oct 2021 00:16:28 +0000 (17:16 -0700)
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>
scripts/checksyscalls.sh

index fd9777f63f14703d25664d5dd601e85bf635b0bb..9dbab13329fa986f0a2d6e955b8b5e1c105634f3 100755 (executable)
@@ -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
 }