From patchwork Wed Nov 30 16:16:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 630031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AB28C433FE for ; Wed, 30 Nov 2022 16:16:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbiK3QQP (ORCPT ); Wed, 30 Nov 2022 11:16:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiK3QQP (ORCPT ); Wed, 30 Nov 2022 11:16:15 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F5112E9C5; Wed, 30 Nov 2022 08:16:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=U1UGXTBuI5LcEIN1P/dpWOejfackW5xFI0KcjLxKSCI=; b=ZtRU2cro5RUk1ONUC7elbnZ/eM siye03T7Pw4SjTDd0piVWmIV8G9OwgjMtVeyuVvoYoO+NNby5wlzMoOZNFfMVlr3mjwqjWvjXGt4h VNABbDZkUS5ke0oznl1gp86o0QOTyWAR5/uMAkx9sZiDhZhIF8X9CD+c+TpwPhnJ+iSp304qdwYCn J+u1+AUccE1UX38xv3SKvxrpYakcWTuUbvJQt5utq8i8+130Agh7YIelTBiktQQMFnPVyusuKsxoB il8HXW/BdWG2gT7BxqaESwnnpNpCXRVp0Bv/iFDYL+01dLfy82J7XYwQrYLn0V7iW2c4Ff5Fqce4f 44FAP1eg==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0Pku-00F7o4-3j; Wed, 30 Nov 2022 16:16:16 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Johannes Berg , Richard Weinberger , Dmitry Torokhov , Miloslav Trmac , linux-input@vger.kernel.org, linux-um@lists.infradead.org Subject: [PATCH] input/misc: wistron_btns: disable on UML Date: Wed, 30 Nov 2022 08:16:04 -0800 Message-Id: <20221130161604.1879-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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 Cc: Johannes Berg Cc: Richard Weinberger Cc: Dmitry Torokhov Cc: Miloslav Trmac Cc: linux-input@vger.kernel.org Cc: linux-um@lists.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