[RFC 02/15] add __RISCVEB__ to byteorder.h

Ben Dooks
2024-12-20T15:58:24Z

---
arch/riscv/include/uapi/asm/byteorder.h | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/riscv/include/uapi/asm/byteorder.h b/arch/riscv/include/uapi/asm/byteorder.h
index f671e16bf6af..61da07ed6b32 100644
--- a/arch/riscv/include/uapi/asm/byteorder.h
+++ b/arch/riscv/include/uapi/asm/byteorder.h
@@ -7,6 +7,10 @@
#ifndef _UAPI_ASM_RISCV_BYTEORDER_H
#define _UAPI_ASM_RISCV_BYTEORDER_H

+#ifdef __RISCVEB__
+#include <linux/byteorder/big_endian.h>
+#else
#include <linux/byteorder/little_endian.h>
+#endif

#endif /* _UAPI_ASM_RISCV_BYTEORDER_H */