Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2246009pxp; Mon, 21 Mar 2022 14:52:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRqWP77xtjzUJ6J51r4Thqr5JahdeLBVd5/nd7HfD+z7SVFnNyLWY43c9+dGzn/H/d4RkP X-Received: by 2002:a63:fe0c:0:b0:383:8345:49be with SMTP id p12-20020a63fe0c000000b00383834549bemr616570pgh.448.1647899573040; Mon, 21 Mar 2022 14:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647899573; cv=none; d=google.com; s=arc-20160816; b=YRTK2TcDbwF0NX6H/mtdbCQoL5HAMRhwALtV98SISuqIwAvTrS4N7q9SmaX1rRcXTe fVbCoQrNcxizWN5lgxYYxors57TpjqZ1IikZu2t+88NqXv4sfnEzd1jWUd6gsicRqgNV +EH/dCa43WW5f0gLu0PCzBaPhIyWkj6nKfqfWVS5TaYdhXK7sIzgFjwvo+4Pz72Nnmde z5V7Y9EG+DbYtYbbLgwd2Au0Ni42jryFiDRfcxCyO7V+hVwUoLHUI1wUs0EJiKwAwUuK 2PSq69t9qG23ZCLgZ+4cJhMDm6QSSvuCIA+rCT06zSTLbC5s9a/GXOcpKpJHBso+DM/P VDMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=BuzvtTqDk6f0Smw5ENzbj0bjU7GjOoh4sZORUG04JeY=; b=JCkPwZwS2lN9Ux21HZEvxzNiO8kEPNtL5s+n/bDIw8RnaobS4+YA7fMtG14kMya5J+ M1CrXJd6vUEzekR3KAf4vrfej7mRK8RQYMlUp/7BsHQJMR99uP73xSqVCs8kDbDT6z8m fnnkjJyMnD2Hglsbv6V/fbX+uGT4SXwjubK3FkGWqA0RGcUI+6zkL3nUXJGUrWcjg0WB /KPQ+qqTv3HmgDyCkTE5lwweVFSOeXCvdbg1wTMMbNJRieaEq6Vw10u5yF+lyPL8EnRv Jx56OqOb/1BnEdy1lp4UYSYJFMtgX9KNjIKW57Ba19RkR1lEUMOHd0eJ+M7Y4YOVLvT6 iYtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=P3PsPreo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j8-20020a17090aeb0800b001bd14e0302csi481009pjz.4.2022.03.21.14.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:52:53 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=P3PsPreo; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B52EF2B65B2; Mon, 21 Mar 2022 14:20:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241710AbiCSBR7 (ORCPT + 99 others); Fri, 18 Mar 2022 21:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232002AbiCSBR6 (ORCPT ); Fri, 18 Mar 2022 21:17:58 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EC4C2BB7EE for ; Fri, 18 Mar 2022 18:16:37 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 00A5C3200D78; Fri, 18 Mar 2022 21:16:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 18 Mar 2022 21:16:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date: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=fm3; bh=BuzvtTqDk6f0Smw5E Nzbj0bjU7GjOoh4sZORUG04JeY=; b=P3PsPreo282SrYl4BjMlc5BrrpouzAPxn CRCu/VVqoLQ6X6Xt0JK59IsHIX70LUZ4CY1SsDdvqYD+Qk2bMs2Vf7HcjHW+CRrP DBsWmc7cs1OTSIkZottIzLkNBIL7+f0HR3B1v2Lc5dhdmc2z3aD+KDV8MBSONhAM lCCtFUf/B8C6VJDeSnR8wrXgL4wrSwcOh4wEpNiS8c7HLpwG+3V6V8k8KWI4hDZC s4GpJSvQI5B8QirKZk8e9TlprH3ZaO/YR3feZWFkBhhx8txmAGOE0BrpnlzT1Hhy 3vwWY2z1oG0iP0Ajt9+iQ/Y8q/vsJwp/VPHQZCp+aSYdWxtyujF2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefjedgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffujgfkfhggtgesthdtredttddtvdenucfhrhhomhephfhinhhnucfv hhgrihhnuceofhhthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgheqnecuggftrfgrth htvghrnhephffhjeejvdejtdejjeeffeefjefgieeijeegveeljeeffffgueevkeehieek vdetnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghdptddurdhorhhgpdhgihhthhhusg hushgvrhgtohhnthgvnhhtrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepfhhthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Mar 2022 21:16:31 -0400 (EDT) Date: Sat, 19 Mar 2022 12:16:38 +1100 (AEDT) From: Finn Thain To: kernel test robot cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Michael Ellerman , Geert Uytterhoeven Subject: Re: via-pmu-event.c:undefined reference to `input_event' In-Reply-To: <202203190015.8LPNVVK5-lkp@intel.com> Message-ID: References: <202203190015.8LPNVVK5-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Sat, 19 Mar 2022, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 551acdc3c3d2b6bc97f11e31dcf960bc36343bfc > commit: ebd722275f9cfc6752e29d2412fa3816ca05764b macintosh/via-pmu: Replace via-pmu68k driver with via-pmu driver > date: 3 years, 8 months ago > config: m68k-randconfig-r021-20220317 (https://download.01.org/0day-ci/archive/20220319/202203190015.8LPNVVK5-lkp@intel.com/config) > compiler: m68k-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ebd722275f9cfc6752e29d2412fa3816ca05764b > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > git fetch --no-tags linus master > git checkout ebd722275f9cfc6752e29d2412fa3816ca05764b > # save the config file to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event': > >> via-pmu-event.c:(.text+0x32): undefined reference to `input_event' > >> m68k-linux-ld: via-pmu-event.c:(.text+0x54): undefined reference to `input_event' > m68k-linux-ld: drivers/macintosh/via-pmu-event.o: in function `via_pmu_event_init': > >> via-pmu-event.c:(.init.text+0xe): undefined reference to `input_allocate_device' > >> m68k-linux-ld: via-pmu-event.c:(.init.text+0x56): undefined reference to `input_register_device' > >> m68k-linux-ld: via-pmu-event.c:(.init.text+0x68): undefined reference to `input_free_device' That config file has CONFIG_INPUT=n which is unusual. The problem affects m68k builds since I enabled the driver 3 years ago but powerpc builds have always been affected by this. via_pmu_event() does nothing unless the hardware happens to be a particular powerpc PMU models but that logic is questionable (see comment in via-pmu-event.c). So I think the best solution is to make the via_pmu_event() code conditional on CONFIG_INPUT. I'll send a patch to that effect.