Re: [PATCH 2/2] riscv: byteorder: add test for big-endian

2025-06-10 Thread Ben Dooks
On 10/06/2025 16:33, Tom Rini wrote: On Tue, Jun 10, 2025 at 04:18:50PM +0100, Ben Dooks wrote: Test for big-endian either via __RISCVEB__ which migth be rather old, or check the BYTE_ORDER if the compiler defines it (which should be any modern gcc like v12) Signed-off-by: Ben Dooks --- arc

Re: [PATCH 2/2] riscv: byteorder: add test for big-endian

2025-06-10 Thread Tom Rini
On Tue, Jun 10, 2025 at 04:18:50PM +0100, Ben Dooks wrote: > Test for big-endian either via __RISCVEB__ which migth be > rather old, or check the BYTE_ORDER if the compiler defines > it (which should be any modern gcc like v12) > > Signed-off-by: Ben Dooks > --- > arch/riscv/include/asm/byteord

[PATCH 2/2] riscv: byteorder: add test for big-endian

2025-06-10 Thread Ben Dooks
Test for big-endian either via __RISCVEB__ which migth be rather old, or check the BYTE_ORDER if the compiler defines it (which should be any modern gcc like v12) Signed-off-by: Ben Dooks --- arch/riscv/include/asm/byteorder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a