diff options
author | 2025-04-18 16:17:20 -0400 | |
---|---|---|
committer | 2025-04-22 15:32:54 +0200 | |
commit | 29f4c4da74acfbd54f5ad2dfafe1a8f93af00431 (patch) | |
tree | ed6288bf27dcd5211259f07c2d5b6abf36ef9639 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | gpiolib: Remove redundant assignment of return variable (diff) | |
download | wireguard-linux-29f4c4da74acfbd54f5ad2dfafe1a8f93af00431.tar.xz wireguard-linux-29f4c4da74acfbd54f5ad2dfafe1a8f93af00431.zip |
gpio: Restrict GPIO_ICH to compile testing with HAS_IOPORT
When building gpio-ich.c for a platform that does not have IO port
access like s390, there are several errors due to the use of inl() and
outl() throughout the driver:
drivers/gpio/gpio-ich.c: In function 'ichx_read_bit':
include/asm-generic/io.h:578:14: error: call to '_inl' declared with attribute error: inl() requires CONFIG_HAS_IOPORT
Only allow compile testing when the targeted platform selects HAS_IOPORT
so that there are no compile time errors.
Fixes: f3592d252f77 ("gpio: ich: enable building with COMPILE_TEST=y")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504171941.g1yXja0j-lkp@intel.com/
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20250418-gpio-ich-fix-build-without-ioport-v1-1-83fc753438ec@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions