From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE514C433DB for ; Tue, 2 Feb 2021 05:23:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A6B1564EDE for ; Tue, 2 Feb 2021 05:23:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231301AbhBBFXN (ORCPT ); Tue, 2 Feb 2021 00:23:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbhBBFXK (ORCPT ); Tue, 2 Feb 2021 00:23:10 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DABAEC061573 for ; Mon, 1 Feb 2021 21:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=E7W54VTybuwmAytLZB5iQUp/AOyj0bb29g+gbwnx5qA=; b=VQHkouFqWYDv0kOXcWNSwXS182 FXAb/iOjf3HvfON//jC/NLaUIFaq+lrFp7qOvV8QNKOFZmvAtruM6tsjgqKMwSxlbo7h/4u+vezKR Z41gP99IWXmDEtYjxCCYQG8Gy0rTL6X/uuDbz5gyrmGZeiv0ir82KfY/8Os24GwiOhsplV20gEO83 SdqRVjW4VTyjQIw4YlvC6RbZ7TgyBYO02rvjm8DS8g6Fw5LOHggC2BvqUHh0w6CzUX6bqdKittKRz Z2l4R3s3xQyyPLmFzCWLTtnI2uw0AXcHpRfHav7oQmA1jSPbjohTUYvFu9QZBXOfbHx827T2YcxxT wcFWUc2w==; Received: from [2601:1c0:6280:3f0::2a53] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6o8w-000639-0R; Tue, 02 Feb 2021 05:22:26 +0000 Subject: Re: [kbuild-all] Re: s390-linux-ld: ll_temac_main.c:undefined reference to `devm_platform_ioremap_resource_byname' To: Rong Chen , kernel test robot , Wang Hai Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org References: <202102010812.qthaghhK-lkp@intel.com> <1606d1eb-2e10-185c-7f80-1a1538da03c8@intel.com> From: Randy Dunlap Message-ID: <8044e33e-018a-839b-4f71-38510d576f6e@infradead.org> Date: Mon, 1 Feb 2021 21:22:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <1606d1eb-2e10-185c-7f80-1a1538da03c8@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/21 9:09 PM, Rong Chen wrote: > > > On 2/2/21 6:38 AM, Randy Dunlap wrote: >> On 1/31/21 4:06 PM, kernel test robot wrote: >>> Hi Wang, >>> >>> FYI, the error/warning still remains. >>> >>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master >>> head:   1048ba83fb1c00cd24172e23e8263972f6b5d9ac >>> commit: bd69058f50d5ffa659423bcfa6fe6280ce9c760a net: ll_temac: Use devm_platform_ioremap_resource_byname() >>> date:   6 months ago >>> config: s390-randconfig-r034-20210201 (attached as .config) >> >> Hi robot, >> >> Instead of hit & miss with s390 randconfigs, you could do what I did: >> (all for arch/s390/): > > Hi Randy, > > Thanks for the advice, do you mean we don't need to test randconfig for arch s390? You should still do randconfig testing for s390 (for other problems), but the robot has been sending out a lot of build errors similar to this one, using different randconfig files. I am just saying that you can find all of the ioremap/iounmap/devm_io* type build errors in one kernel config file as described above. > > Best Regards, > Rong Chen > >> >> $ make allmodconfig >> $ scripts/config -d PCI  ## this also disables HAS_IOMEM >> $ make oldconfig >> $ make all >> >> The latter gives a full list of drivers etc. that use iomemp/ioremap etc. as well as dev_io* variants instead of just a few random ones. >> >> >>> All errors (new ones prefixed by >>): >>> >>>     s390-linux-ld: drivers/net/ethernet/xilinx/ll_temac_main.o: in function `temac_probe': >>>     ll_temac_main.c:(.text+0x39b6): undefined reference to `devm_platform_ioremap_resource_byname' >>>>> s390-linux-ld: ll_temac_main.c:(.text+0x3a4c): undefined reference to `devm_platform_ioremap_resource_byname' >>>     s390-linux-ld: ll_temac_main.c:(.text+0x3bce): undefined reference to `devm_ioremap' >>>     s390-linux-ld: drivers/net/ethernet/xilinx/xilinx_axienet_main.o: in function `axienet_probe': >>>     xilinx_axienet_main.c:(.text+0x844): undefined reference to `devm_ioremap_resource' >> _______________________________________________ -- ~Randy