diff options
| author | Yunhui Cui <cuiyunhui@bytedance.com> | 2026-07-03 20:28:30 +0800 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-07-13 12:01:49 -0600 |
| commit | 6dc3934152d1cc48b0395264d0061ebb4aed359e (patch) | |
| tree | 141e31e6c709549fe14110ed01df4832e88ea0a9 /tools/perf/scripts/python | |
| parent | 3a2694bf6ac8e47b3814293e80343f58fc72937f (diff) | |
riscv: io: avoid null-pointer arithmetic in PIO helpers
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@bytedance.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260703122832.15984-2-cuiyunhui@bytedance.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
