Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp825915rdb; Wed, 6 Dec 2023 00:31:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSy3AjuPZfQp8KqVBN4u0oroi2vY1pFYrg5SiqLN6EJCMaNS8wvpuPBFNR80Kq0Xq7yeD4 X-Received: by 2002:a17:90a:1911:b0:286:9464:1bcd with SMTP id 17-20020a17090a191100b0028694641bcdmr348445pjg.43.1701851482199; Wed, 06 Dec 2023 00:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701851482; cv=none; d=google.com; s=arc-20160816; b=ncZtqxVS9ThE/k/LL+2S6tHqa93PgC52h0UrLjueF3SyEAfxbxusti+deZTzSzyUtP o8sYmgFi96aMgczW7O+ygVyx989ungdeAZnwU313ZeudJG4xeovQMgrgl4Fd1EQ/mTa7 WJK8CZDCV66fBHQlvPchOGm0uNbagw28k/Yf8KzKllZDCgm/qITEf41ugDB//9jeog+o 6UUwWRNmCvqNpnvHwkm7yCsYKwuDaXeC/tUBLQ7Ja5P2C17j2mLTp60royrjTtHrkCA3 iLdRoMPCinfswW20VJOH8Y/VR7oakP/NJSl+/q3+mZM/mC7A6F18GjF6kNRe3Bd+d/h2 V/7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=PW66L1dPgZW8LDxXB4sVa/5vk2EkvICnU+1XTg3NMCw=; fh=P3TjY3dl8EmZaVFzCM1YGHwFZJ5ukxe/xCDp3ChCjfA=; b=cOWix+T+CoOrkZbqJlMR+ov+X4YKErR6YQbQP1J08lgYp7lIg+YNJ9GCi8aqIbX6Op 6lvrcZT3ziuYNcI+woWjfuZm5ySfmhnRIv3CKCCQmChA7z71Z49EK8hKW3vM70aLEYXX NghBtfumaMXr0HqpUHSuJn7OwIKkjM0Uy+OgCSTv3vKqvQeLb1RgQbcOaioYaMK7p2i6 hWOjA7142CshYygtINFyDzXniseBvi40NYVvpPJiGtAkvyB3Hh89/wfr1BO4lvcp/qMY yZP8GkACFUOLEtwtivvHCeRZ5qSK2Ovnfc/rL1MeWqKak8nXSmxb4/HCHh4Q3gd6c/VV q/rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=QfPx6a9G; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GH+CucaS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id pg11-20020a17090b1e0b00b00278f6d616aasi5658601pjb.71.2023.12.06.00.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:31:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=QfPx6a9G; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GH+CucaS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7B3E88072170; Tue, 5 Dec 2023 22:53:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376832AbjLFGxa (ORCPT + 99 others); Wed, 6 Dec 2023 01:53:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231991AbjLFGx3 (ORCPT ); Wed, 6 Dec 2023 01:53:29 -0500 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B632C135; Tue, 5 Dec 2023 22:53:34 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id DC3203200B13; Wed, 6 Dec 2023 01:53:30 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Wed, 06 Dec 2023 01:53:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701845610; x=1701932010; bh=PW 66L1dPgZW8LDxXB4sVa/5vk2EkvICnU+1XTg3NMCw=; b=QfPx6a9GTa1f8QF0e9 lEuKcFsJPTVPzqFVzdlUGuPbTX1bXF+m0OSM+YNNfRN1dBbSz3fYmLlgBf+4qu50 MSc3XV6QJBw/wNLDMYH0KHgRRX++edlijcqtOR4DqA4Ea4CgvszljPYzldmUD26q X3QGbL/vfndBP62fcpHygQeXYNT4laXNuAZ9+yI/mu2Zr1wAHJzcWNi/vCh6laQS zIadvRovi+y6hW9eDsJ4ps08lv51m+a/UswS+91VJGQW3/7P5fGNEGyNm7mmao6Y VYt6MlBaRPA0p7V67U8kA+AsECGyy9Vy4akvg0ruNp+JfnaQjW1PN3/7Fop5WikR fb/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701845610; x=1701932010; bh=PW66L1dPgZW8L DxXB4sVa/5vk2EkvICnU+1XTg3NMCw=; b=GH+CucaS/2CicMAeMT4S2qz+0QUxW siBhRM00FdK7bQYs0lqFqLWVH9ZhljqfelKYSu8lZZkIjExFiG4mE5HSbFn9TVcb btqbpsjRCPqgqFDCm8m1HhMEB1avddz+lKBrKr5XHAhwMwrTuXU51xCEwPXtAqzh s13xg4Mjp0wQ8tFG0xuX7CYR5Z8RYQ5pM7u4P6puIwTGKTpHlN6yAwiynTfzeQVT d6r8qyJ362D6BWSC1M5lh3CmkQeFxV+pI63VXlBDG6vvZlJlrbOu+aHT68GwQNrJ YmdSSyJWOGUJffDa9EAVThSRmPpUSy4a+g3N182uNx7YNX6SYa1XicWYA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudejledgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5AAB1B60089; Wed, 6 Dec 2023 01:53:29 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 MIME-Version: 1.0 Message-Id: In-Reply-To: <5f1caaf8-1edf-444a-b017-c4d08e52213b@infradead.org> References: <202312041909.lwhcU35R-lkp@intel.com> <5f1caaf8-1edf-444a-b017-c4d08e52213b@infradead.org> Date: Wed, 06 Dec 2023 07:52:58 +0100 From: "Arnd Bergmann" To: "Randy Dunlap" , "kernel test robot" , "Masahiro Yamada" Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, "Nicolas Schier" , "Jiaxun Yang" , linux-mips@vger.kernel.org Subject: Re: pm.c:undefined reference to `i8042_command' Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 22:53:44 -0800 (PST) On Wed, Dec 6, 2023, at 06:24, Randy Dunlap wrote: >> All errors (new ones prefixed by >>): >> >> mips64el-linux-ld: arch/mips/loongson2ef/lemote-2f/pm.o: in function `setup_wakeup_events': >>>> pm.c:(.text+0x118): undefined reference to `i8042_command' >>>> mips64el-linux-ld: pm.c:(.text+0x154): undefined reference to `i8042_command' > > > How do we feel about this? > I suppose that an ARCH or mach or board should know what it requires. > > > --- > arch/mips/loongson2ef/Kconfig | 3 +++ > 1 file changed, 3 insertions(+) > > diff -- a/arch/mips/loongson2ef/Kconfig b/arch/mips/loongson2ef/Kconfig > --- a/arch/mips/loongson2ef/Kconfig > +++ b/arch/mips/loongson2ef/Kconfig > @@ -40,6 +40,9 @@ config LEMOTE_MACH2F > select ARCH_HAS_PHYS_TO_DMA > select ARCH_MIGHT_HAVE_PC_PARPORT > select ARCH_MIGHT_HAVE_PC_SERIO > + select INPUT > + select SERIO > + select SERIO_I8042 > select BOARD_SCACHE > select BOOT_ELF32 I think it's bad style to force-select an optional subsystem. How about making the entire file optional? It seems that there are already __weak functions in its place. --- a/arch/mips/loongson2ef/lemote-2f/Makefile +++ b/arch/mips/loongson2ef/lemote-2f/Makefile @@ -8,5 +8,6 @@ obj-y += clock.o machtype.o irq.o reset.o dma.o ec_kb3310b.o # # Suspend Support # - +ifdef CONFIG_SERIO_I8042 obj-$(CONFIG_SUSPEND) += pm.o +endif Arnd