Re: [PATCH 05/12] gpio: allow building port-mapped GPIO drivers with COMPILE_TEST=y
From: Andy Shevchenko
Date: Mon Apr 07 2025 - 05:01:45 EST
On Mon, Apr 07, 2025 at 09:13:14AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
>
> Extend the build coverage by allowing the port-mapped drivers to be
> build with COMPILE_TEST enabled.
...
> 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
Are you sure about this? Do we have IO accessor stubs? I don't remember that.
What about
depends on HAS_IOPORT # I/O space access
depends on X86 || COMPILE_TEST
instead?
--
With Best Regards,
Andy Shevchenko