Skip to contentSkip to conversation

checksyscalls: Unconditionally ignore fstat{,at}64

PATCH In review Palmer Dabbelt 2 participants 2 messages Oct 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checksyscalls: Unconditionally ignore fstat{,at}64

From: Palmer Dabbelt <[email protected]>

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.

---
Happy to take this through the RISC-V tree, as it's fixing a build warning (that's being promoted to an error for me, not sure why). I'm just not all that familiar with how this one works.

Arnd suggested putting these here, but not exactly doing it this way.

---
 scripts/checksyscalls.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
scripts/checksyscalls.sh +4 -2
index fd9777f63f14..9dbab13329fa 100755
@@ -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
 }
 
Signature · 1 line
2.33.0.800.g4c38ced690-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Palmer Dabbelt

From: Palmer Dabbelt <[email protected]>

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.

Quoted 5 lines

Happy to take this through the RISC-V tree, as it's fixing a build warning (that's being promoted to an error for me, not sure why). I'm just not all that familiar with how this one works.

Arnd suggested putting these here, but not exactly doing it this way.

Merging it through your tree sounds good.