Re: [PATCH v8 1/3] riscv: io: avoid null-pointer arithmetic in PIO helpers
From: Paul Walmsley
Date: Mon Jul 13 2026 - 14:04:04 EST
On Fri, 3 Jul 2026, Yunhui Cui wrote:
> When port I/O is not supported, exposing the port-string helpers is both
> unnecessary and can make clang diagnose null-pointer arithmetic from the
> PCI_IOBASE based address expression. Keep the MMIO string helpers
> available as before, but only provide the port I/O variants when
> CONFIG_HAS_IOPORT is enabled.
>
> Signed-off-by: Yunhui Cui <cuiyunhui@xxxxxxxxxxxxx>
> Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>
Thanks, queued for v7.2-rc.
- Paul