Skip to contentSkip to conversation

drivers: char: SONYPI depends on HAS_IOPORT

PATCH In review Johannes Berg 3 participants 3 messages Jun 6, 2025 – Jun 17, 2025 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: char: SONYPI depends on HAS_IOPORT

From: Johannes Berg <[email protected]>

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.

---
 drivers/char/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/Kconfig +1 -1
index 8fb33c90482f..36295558dc85 100644
@@ -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
Signature · 1 line
2.49.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Johannes Berg

From: Johannes Berg <[email protected]>

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.

Quoted 4 lines

Closes:
https://lore.kernel.org/oe-kbuild-all/[email protected]/

You beat me to this one, I was about to send the same thing.

Arnd

Acked-by Tested-by on v1 1/1
#2 lore raw
In reply to Johannes Berg
Quoted 9 lines · Johannes Berg

From: Johannes Berg <[email protected]>

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.

Quoted 3 lines

Thanks.

Quoted 17 lines
---
 drivers/char/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/Kconfig +1 -1
index 8fb33c90482f..36295558dc85 100644
@@ -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
Signature · 1 line
~Randy