* [PATCH] drivers: char: SONYPI depends on HAS_IOPORT
@ 2025-06-06 7:12 Johannes Berg
2025-06-06 7:48 ` Arnd Bergmann
2025-06-17 18:41 ` Randy Dunlap
0 siblings, 2 replies; 3+ messages in thread
From: Johannes Berg @ 2025-06-06 7:12 UTC (permalink / raw)
To: linux-kernel
Cc: Arnd Bergmann, Greg Kroah-Hartman, Johannes Berg,
kernel test robot
From: Johannes Berg <johannes.berg@intel.com>
It already depends on X86_32, but that's also set for ARCH=um.
Recent changes made UML no longer have IO port access since
it's not needed, but this driver uses it. Build it only for
HAS_IOPORT. This is pretty much the same as depending on X86,
but on the off-chance that HAS_IOPORT will ever be optional
on x86 HAS_IOPORT is the real prerequisite.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506060742.XR3HcxWA-lkp@intel.com/
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
drivers/char/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
index 8fb33c90482f..36295558dc85 100644
--- a/drivers/char/Kconfig
+++ b/drivers/char/Kconfig
@@ -237,7 +237,7 @@ config APPLICOM
config SONYPI
tristate "Sony Vaio Programmable I/O Control Device support"
- depends on X86_32 && PCI && INPUT
+ depends on X86_32 && PCI && INPUT && HAS_IOPORT
depends on ACPI_EC || !ACPI
help
This driver enables access to the Sony Programmable I/O Control
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drivers: char: SONYPI depends on HAS_IOPORT
2025-06-06 7:12 [PATCH] drivers: char: SONYPI depends on HAS_IOPORT Johannes Berg
@ 2025-06-06 7:48 ` Arnd Bergmann
2025-06-17 18:41 ` Randy Dunlap
1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2025-06-06 7:48 UTC (permalink / raw)
To: Johannes Berg, linux-kernel
Cc: Greg Kroah-Hartman, Johannes Berg, kernel test robot
On Fri, Jun 6, 2025, at 09:12, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
>
> It already depends on X86_32, but that's also set for ARCH=um.
> Recent changes made UML no longer have IO port access since
> it's not needed, but this driver uses it. Build it only for
> HAS_IOPORT. This is pretty much the same as depending on X86,
> but on the off-chance that HAS_IOPORT will ever be optional
> on x86 HAS_IOPORT is the real prerequisite.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes:
> https://lore.kernel.org/oe-kbuild-all/202506060742.XR3HcxWA-lkp@intel.com/
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
You beat me to this one, I was about to send the same thing.
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drivers: char: SONYPI depends on HAS_IOPORT
2025-06-06 7:12 [PATCH] drivers: char: SONYPI depends on HAS_IOPORT Johannes Berg
2025-06-06 7:48 ` Arnd Bergmann
@ 2025-06-17 18:41 ` Randy Dunlap
1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2025-06-17 18:41 UTC (permalink / raw)
To: Johannes Berg, linux-kernel
Cc: Arnd Bergmann, Greg Kroah-Hartman, Johannes Berg,
kernel test robot
On 6/6/25 12:12 AM, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
>
> It already depends on X86_32, but that's also set for ARCH=um.
> Recent changes made UML no longer have IO port access since
> it's not needed, but this driver uses it. Build it only for
> HAS_IOPORT. This is pretty much the same as depending on X86,
> but on the off-chance that HAS_IOPORT will ever be optional
> on x86 HAS_IOPORT is the real prerequisite.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202506060742.XR3HcxWA-lkp@intel.com/
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
> ---
> drivers/char/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
> index 8fb33c90482f..36295558dc85 100644
> --- a/drivers/char/Kconfig
> +++ b/drivers/char/Kconfig
> @@ -237,7 +237,7 @@ config APPLICOM
>
> config SONYPI
> tristate "Sony Vaio Programmable I/O Control Device support"
> - depends on X86_32 && PCI && INPUT
> + depends on X86_32 && PCI && INPUT && HAS_IOPORT
> depends on ACPI_EC || !ACPI
> help
> This driver enables access to the Sony Programmable I/O Control
--
~Randy
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-17 18:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-06 7:12 [PATCH] drivers: char: SONYPI depends on HAS_IOPORT Johannes Berg
2025-06-06 7:48 ` Arnd Bergmann
2025-06-17 18:41 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).