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

Conor Dooley conor.dooley at microchip.com
Mon Nov 27 02:39:16 PST 2023


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 at kernel.org>

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20231127/3ab1ed23/attachment.sig>


More information about the linux-riscv mailing list