drivers: char: SONYPI depends on HAS_IOPORT
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
@@ -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
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 forHAS_IOPORT. This is pretty much the same as depending on X86, but on the off-chance thatHAS_IOPORTwill ever be optional on x86HAS_IOPORTis the real prerequisite.
Quoted 4 lines
Reported-by kernel test robot <[email protected]>Closes:
https://lore.kernel.org/oe-kbuild-all/[email protected]/Signed-off-by Johannes Berg <[email protected]>
You beat me to this one, I was about to send the same thing.
Arnd
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 forHAS_IOPORT. This is pretty much the same as depending on X86, but on the off-chance thatHAS_IOPORTwill ever be optional on x86HAS_IOPORTis the real prerequisite.
Quoted 3 lines
Reported-by kernel test robot <[email protected]>Signed-off-by Johannes Berg <[email protected]>
Thanks.
Quoted 17 lines
--- drivers/char/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/char/Kconfig +1
-1@@ -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