Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1736464pxp; Mon, 21 Mar 2022 04:04:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUBkxqVHEuuwjOff7OigA4XMA+FJpnXQ7rmyAlWwQYXHm2Km7D7YdMza9aRV9jWNc/T1QG X-Received: by 2002:a63:fa43:0:b0:382:53c4:ca7c with SMTP id g3-20020a63fa43000000b0038253c4ca7cmr6989038pgk.33.1647860642872; Mon, 21 Mar 2022 04:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647860642; cv=none; d=google.com; s=arc-20160816; b=pRoSe/VFTs0JPp2hq860YzZQE7E6J49P+jF56iMXXH9G1rcU4hgt4Zl1sHkS7PuvmG sYo//5huqcmGD0ydHGxLCu8yhmLfEHeo7mTsVW4Gj+Zeblj89QHf9u6vRz+yBcI62aXr hEreEJD0UMiaalz6OGB2joBj1AgxybykVzRyh2gy1KhXsDuV7N5xaCm5hVwzg4FXVAKn hMNWFvaAoW/aXrzZTgRp8j539LnDbyp2BHozuG2djZKD5RDckPn+8yw7IEYSLP/YCu2m E2XfzCQJR0iE+yKV1DMF0J3ua6sXwLGGKFBWG0fkreH1STDH2D0bY1ktwBqkY7p906GX qChg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LiAmXF+XSu8FyM2tNbVP3QUK+/4Lx91AGMoxhIN3FjE=; b=rkbBisfeBmJEWBddKruRqsjMMe60n7G0Asomgt0VzKIvX/laB5OydzXoRGQZw+xI13 rmy7WbJG8HWaLjyAi+DW6r9cXIgkNWnoF3qPELRreWxh/nop+C4yV7Ov4dHr4WQh6PVQ NRBxAKW/xfQb4UL+Mo3oI3b31XDA/B0NpfxsA28RJ1n/JrRVpl86trnPDvVm0uRohAUi FtvOC7YUSYbZeGR9ulQIz6RLaRGbyHB9Fpdw3cIKf/UMFW1Icje5mR9IcWl+P72miKN6 CmSfEOHGj2JKXhuJnsR5S6qPWSgQYJgXN2Fuf00dNOx/Vay3jvggxyG/nq7OOBU5HJH+ Ec5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=tLT02o4e; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020a63cf16000000b003816043f10csi11931768pgg.769.2022.03.21.04.03.41; Mon, 21 Mar 2022 04:04:02 -0700 (PDT) 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=tLT02o4e; 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 S242018AbiCSEST (ORCPT + 99 others); Sat, 19 Mar 2022 00:18:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239863AbiCSESP (ORCPT ); Sat, 19 Mar 2022 00:18:15 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2C4E1D12EA for ; Fri, 18 Mar 2022 21:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=LiAmXF+XSu8FyM2tNbVP3QUK+/4Lx91AGMoxhIN3FjE=; b=tLT02o4eiuNjEAwQOnQsAzS16Z ozLmbaro/1OTHZmnKHyAqZ5oyjGY8IeZr0WOD55ecauENG3uU/OLv34Wj89VQJmNWVElse/uDyDuv Sjy95cjebpsWuNp4GF9hM07Zit8wWslay4Sd4aJTg42CEmFLpjKePm5A4L6x+7osegnR0LihpSIZq MpVfioBC3D6tNLlUrmANIdktEj/Q8ksT5OCqFns3Zn125SycGNc1G8L/wf6wyeyfbwrrVnMro9XfV GSbxMpjbuvEICPPNFvsD7NEdNAkgsHmMpv9u5J7XkPgZrkAs8kSXkTmnWk6UQigR72gaiAPwu8/Ty JDtWanmA==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nVQWD-008YCb-PV; Sat, 19 Mar 2022 04:16:46 +0000 Message-ID: <6a50c7f3-2c1b-3a31-0a03-aa7319190d5d@infradead.org> Date: Fri, 18 Mar 2022 21:16:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: via-pmu-event.c:undefined reference to `input_event' Content-Language: en-US To: Finn Thain , kernel test robot Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Michael Ellerman , Geert Uytterhoeven References: <202203190015.8LPNVVK5-lkp@intel.com> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 On 3/18/22 18:16, Finn Thain wrote: > 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. Hi Finn, That's what I was planning to do also, but I'll leave it to you. thanks. -- ~Randy