fio: fix formats under MIPS64/PPC
authorRosen Penev <rosenp@gmail.com>
Fri, 28 Jun 2024 20:45:32 +0000 (13:45 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 27 Aug 2025 00:51:48 +0000 (17:51 -0700)
__SANE_USERSPACE_TYPES__ needs to be defined to get consistent formats on all platforms.

It mostly affects 64-bit architectures (no op on 32 bit) with long long
vs long.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
arch/arch-mips.h
arch/arch-ppc.h

index 6f157fbb19a30ccba3992930d7154877a7457c35..8a0e9370ae9300d6338f4c003c991beaa811d7c7 100644 (file)
@@ -3,6 +3,10 @@
 
 #define FIO_ARCH       (arch_mips)
 
+#ifndef __SANE_USERSPACE_TYPES__
+#define __SANE_USERSPACE_TYPES__
+#endif
+
 #define read_barrier()         __asm__ __volatile__("": : :"memory")
 #define write_barrier()                __asm__ __volatile__("": : :"memory")
 #define nop                    __asm__ __volatile__("": : :"memory")
index 804d596aecc632cb27f547c90a5b2b997ef79b42..7f3503b6cd917d196dec21f24f6362dc66575b14 100644 (file)
@@ -8,6 +8,10 @@
 
 #define FIO_ARCH       (arch_ppc)
 
+#ifndef __SANE_USERSPACE_TYPES__
+#define __SANE_USERSPACE_TYPES__
+#endif
+
 #define nop    do { } while (0)
 
 #ifdef __powerpc64__