[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221130161604.1879-1-rdunlap@infradead.org>
Date: Wed, 30 Nov 2022 08:16:04 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-kernel@...r.kernel.org
Cc: Randy Dunlap <rdunlap@...radead.org>,
Johannes Berg <johannes.berg@...el.com>,
Richard Weinberger <richard@....at>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Miloslav Trmac <mitr@...ny.cz>, linux-input@...r.kernel.org,
linux-um@...ts.infradead.org
Subject: [PATCH] input/misc: wistron_btns: disable on UML
The wistron_btns driver calls rtc_cmos_read(), which isn't
available with UML builds, so disable this driver on UML.
Prevents this build error:
ld: drivers/input/misc/wistron_btns.o: in function `poll_bios':
wistron_btns.c:(.text+0x4be): undefined reference to `rtc_cmos_read'
Fixes: 0bbadafdc49d ("um: allow disabling NO_IOMEM") # v5.14+
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Johannes Berg <johannes.berg@...el.com>
Cc: Richard Weinberger <richard@....at>
Cc: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: Miloslav Trmac <mitr@...ny.cz>
Cc: linux-input@...r.kernel.org
Cc: linux-um@...ts.infradead.org
---
drivers/input/misc/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -- a/drivers/input/misc/Kconfig b/drivers/input/misc/Kconfig
--- a/drivers/input/misc/Kconfig
+++ b/drivers/input/misc/Kconfig
@@ -330,7 +330,7 @@ config INPUT_CPCAP_PWRBUTTON
config INPUT_WISTRON_BTNS
tristate "x86 Wistron laptop button interface"
- depends on X86_32
+ depends on X86_32 && !UML
select INPUT_SPARSEKMAP
select NEW_LEDS
select LEDS_CLASS
Powered by blists - more mailing lists