Re: [PATCH] riscv: Use asm-generic for {read,write}{bwlq} and their relaxed variant

From: Conor Dooley
Date: Mon Nov 27 2023 - 05:39:54 EST


On Thu, Nov 23, 2023 at 10:20:03PM +0800, Jisheng Zhang wrote:
> The asm-generic implementation is functionally identical to the riscv
> version.
>
> Signed-off-by: Jisheng Zhang <jszhang@xxxxxxxxxx>

This fails to build for nommu:
/tmp/tmp.ojumpiEgOt/arch/riscv/include/asm/timex.h:20:16: error: implicit declaration of function 'readq_relaxed' [-Werror=implicit-function-declaration]
/tmp/tmp.ojumpiEgOt/include/asm-generic/io.h:342:23: error: conflicting types for 'readq_relaxed'; have 'u64(const volatile void *)' {aka 'long long unsigned int(const volatile void *)'}

Cheers,
Conor.

Attachment: signature.asc
Description: PGP signature