[PATCH 05/12] gpio: allow building port-mapped GPIO drivers with COMPILE_TEST=y

From: Bartosz Golaszewski
Date: Mon Apr 07 2025 - 03:14:21 EST


From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>

Extend the build coverage by allowing the port-mapped drivers to be
build with COMPILE_TEST enabled.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
---
drivers/gpio/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index f2c39bbff83a..5bbc7f724a09 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -889,7 +889,7 @@ config GPIO_IDT3243X
endmenu

menu "Port-mapped I/O GPIO drivers"
- depends on X86 && HAS_IOPORT # I/O space access
+ depends on (X86 && HAS_IOPORT) || COMPILE_TEST # I/O space access

config GPIO_VX855
tristate "VIA VX855/VX875 GPIO"

--
2.45.2