Skip to content

Commit 3ef6ca4

Browse files
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 <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent bb8958d commit 3ef6ca4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/checksyscalls.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ cat << EOF
8282
#define __IGNORE_truncate64
8383
#define __IGNORE_stat64
8484
#define __IGNORE_lstat64
85-
#define __IGNORE_fstat64
8685
#define __IGNORE_fcntl64
8786
#define __IGNORE_fadvise64_64
88-
#define __IGNORE_fstatat64
8987
#define __IGNORE_fstatfs64
9088
#define __IGNORE_statfs64
9189
#define __IGNORE_llseek
@@ -253,6 +251,10 @@ cat << EOF
253251
#define __IGNORE_getpmsg
254252
#define __IGNORE_putpmsg
255253
#define __IGNORE_vserver
254+
255+
/* 64-bit ports never needed these, and new 32-bit ports can use statx */
256+
#define __IGNORE_fstat64
257+
#define __IGNORE_fstatat64
256258
EOF
257259
}
258260

0 commit comments

Comments
 (0)