To use the swap byte transformations we need to declare the s390x architecture as big endian. Signed-off-by: Pierre Morel <pmorel@xxxxxxxxxxxxx> --- lib/s390x/asm/io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/s390x/asm/io.h b/lib/s390x/asm/io.h index 1dc6283b..b5e661cf 100644 --- a/lib/s390x/asm/io.h +++ b/lib/s390x/asm/io.h @@ -10,6 +10,7 @@ #define _ASMS390X_IO_H_ #define __iomem +#define __cpu_is_be() (1) #include <asm-generic/io.h> -- 2.25.1