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: 27869 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1023609wrr; Wed, 30 Nov 2022 08:27:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf4qR0iH9o1WpBoUPF4Ebiw/3luMjXk/nMClBaJXSlLpnaaVOqJbWBdnlFcmF8RKQLtdKmDR X-Received: by 2002:a05:6402:120c:b0:46b:86:20b5 with SMTP id c12-20020a056402120c00b0046b008620b5mr17206339edw.130.1669825636090; Wed, 30 Nov 2022 08:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669825636; cv=none; d=google.com; s=arc-20160816; b=BSEjFqYSzIXUL228lYHVbuzcwj9CGyeu6UljFtSy2hKQPdtFoOIF67gEyRXSAET4Y9 u104Q2ZcTTO7/hRCJtkmw0XsZhKG5jyx9WQK9vlBKH/b+qx+7MtzdDR3WYl5xsuWYqm3 vAsRljZMMvO0v9MaX6pjMl9Qdgn9TYPyc3JdEyamt+JUWoCD6mI3REHckjcXOVqNL9bD d3lK6fGC9DfoUQcMcP4vt3Y8tVQ33LkrUmjjEkeUvP626MwSX17nSutExFqxgeNGAmZ6 DAyM3fWmxs2oUZl0HUktPi9zY8So8oVcO1/S5gveEBtiWE5cDYCEAkyuNkQz0TVaGir6 lLgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=U1UGXTBuI5LcEIN1P/dpWOejfackW5xFI0KcjLxKSCI=; b=V3RLGM6RWavQgdU/wiaTjFVSSJhmqfmrRe5wOzYYXrA3ALSQyw5aIP/zassAIspxVw nlgRzsxwtuQgMP8LcZAcHTAfghHBAV/7Urm3Ls+ksg51VNPHHbvGY2SydBRVFgSx9AzY 0S2+mzCw8zAXNVYlVL0KbC09UdOQpxTGvuDr4n31DPIKRbtbZNgb6VbKuT+TXRasiRh8 ECWYUSKoWr56oAXsdLQbp7HmZZj3cMnJTlSS3g0jGAG954ufJo4TAOXEfeZCeP8HQ4uL EykR8bdqanVGJE8McPc3Jmq/iPXDJKEW+GveRdkf5LrcTBuXvjtJMtKnEVqWac4ZEloU De+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZtRU2cro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt13-20020a1709072d8d00b0078e1206d934si1802730ejc.162.2022.11.30.08.26.51; Wed, 30 Nov 2022 08:27:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZtRU2cro; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbiK3QQR (ORCPT + 99 others); Wed, 30 Nov 2022 11:16:17 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750939086233463632?= X-GMAIL-MSGID: =?utf-8?q?1750939086233463632?= 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