Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2950457pxb; Mon, 16 Nov 2020 01:25:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwojVcFu1rkW1pm/leH3Ft18eNgbL/gQDH8a7BtO9P86lJjoEoplEqxU5gSoWYtJQnCP16L X-Received: by 2002:a50:ee97:: with SMTP id f23mr15493864edr.333.1605518732578; Mon, 16 Nov 2020 01:25:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605518732; cv=none; d=google.com; s=arc-20160816; b=ZMeOEahYIL/lmkX7R86vblellHVmqJEeuGGg5yHd1gzDMyrYS0ZmaSALDGq6Uoz9+I x8LdJ897rrYC2Qe1RQ7qmHcSvacK5bQq533Zupbv9d2+4EHvakoqs1qNjB11lClbO5T6 2lEDUbcGmiEk7TAdK2ZCvbmZVU7rPES9HNsJ8FpV8ilTwxjtJJUdZHq2RLVgkT+DK9Zn xl2VH1DJKVOjMvP6zDDcxHIS6HDZQephubHlpUZbd04JhoJfdOuYSF/r7NB2V6Kkc2i5 vRybm3gI1Ri/ZJ/qRHfAx73M6scu8qbgnOufttD+yWltH6rMP7pmPmYWTvbuJSCIFsEe fYNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aEsnXMFcE5ciH0H8i7UE2ki8yNxxlJwKI65fN60rdOs=; b=ulICh8KVCd4fXiNqdVf8lQa1QKTAbIrTYK7B8+vz8lDTvGBgF/7i6DIfuqN4sgJo0I W+jSYUDloZ2HgYmNya36du67z3UMFGoqmyJaFAmeJ9zwN5UJCPCJ/Yc42Rjr1PR8oEBD 5HMNR6DwcWSNHt+0m7V6HbnXhH0qKqKSWCNL8UegQD26ztV59M9PFwPJpf3wS0nmTdAk iXOQ5IyAGKLb3uXm3WNRVePUJe7iOC2vpU8aGb8roPkB5KVPhISazD99ut0414ZUk60c i3dBkgJf/3ohbb75zlkEJ1Jm+MvRCXStwd9/nRNQ1AM0cdW2Z3BO1JufFOovSe7chRei WNPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TnG5uA3e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d27si11061019edj.365.2020.11.16.01.25.04; Mon, 16 Nov 2020 01:25:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TnG5uA3e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbgKPJVp (ORCPT + 99 others); Mon, 16 Nov 2020 04:21:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:37280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbgKPJVo (ORCPT ); Mon, 16 Nov 2020 04:21:44 -0500 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AEF0122245; Mon, 16 Nov 2020 09:21:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605518503; bh=b5byWLi73FIB4AkZaeHzRRJ6/KF11eEptbPH75qogh8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TnG5uA3eK/QvdGhkKy3OUnW7b91tVESOLw4UE9JLxbDTiOUtwvol5t+8kBV5DmIeS CFVCOuMVzC5WaYzmROs9hpQKprzmT84jJEbsEu9pd5fpHaV0OybiV2wJTMHQ/jyADP iLAAq++9VD9ChhPIuLSM57WRogict59gtf9VJ1KA= Received: by mail-ot1-f49.google.com with SMTP id i18so15361332ots.0; Mon, 16 Nov 2020 01:21:43 -0800 (PST) X-Gm-Message-State: AOAM5310TxhJlib/wWJdYFjobVcCdMN2UqrBjYhHbHvb3Zt/s2sOF5ST d1VpsZ3CMXdA0FmT+BCfzn6T0ugKnsYdN/gdVbo= X-Received: by 2002:a9d:23a6:: with SMTP id t35mr9500038otb.210.1605518502891; Mon, 16 Nov 2020 01:21:42 -0800 (PST) MIME-Version: 1.0 References: <202011140757.5QyVghe2-lkp@intel.com> <4f6f2244-033c-8413-818d-0b9c1b0b33ae@infradead.org> In-Reply-To: From: Arnd Bergmann Date: Mon, 16 Nov 2020 10:21:26 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: irq-loongson-pch-pic.c:undefined reference to `of_iomap' To: Geert Uytterhoeven Cc: Randy Dunlap , kernel test robot , Jiaxun Yang , kbuild-all@lists.01.org, "linux-kernel@vger.kernel.org" , Marc Zyngier , Arnd Bergmann , linux-s390 , Heiko Carstens , Vasily Gorbik , Christian Borntraeger Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 9:37 AM Geert Uytterhoeven wrote: > On Mon, Nov 16, 2020 at 9:33 AM Arnd Bergmann wrote: > > On Mon, Nov 16, 2020 at 5:33 AM Randy Dunlap wrote: > > > On 11/13/20 3:27 PM, kernel test robot wrote: > > (adding s390 folks to cc) > > > > I think fixing this requires a larger-scale effort. I tried building > > an s390 allmodconfig > > with CONFIG_PCI disabled, and got warnings and failures in many other places, > > see full log at the end of this mail. > > > > While in theory, all of those should depend on 'HAS_IOMEM' or some other symbol, > > keeping these dependencies sounds like an uphill battle, and there is not much > > to be gained from building the drivers for s390 on top of compile-testing them > > on more conventional architectures. > > Don't we need the dependencies on HAS_IOMEM for the CONFIG_UML=y > case, too? I would have expected that as well, but I don't see the problem when building an arch/um kernel, all I get is ERROR: modpost: "devm_platform_ioremap_resource" [drivers/iio/adc/adi-axi-adc.ko] undefined! ERROR: modpost: "devm_platform_ioremap_resource" [drivers/ptp/ptp_ines.ko] undefined! ERROR: modpost: "devm_ioremap_resource" [drivers/net/ethernet/xilinx/xilinx_emac.ko] undefined! ERROR: modpost: "devm_platform_ioremap_resource_byname" [drivers/net/ethernet/xilinx/ll_temac.ko] undefined! ERROR: modpost: "devm_ioremap" [drivers/net/ethernet/xilinx/ll_temac.ko] undefined! ERROR: modpost: "devm_of_iomap" [drivers/net/ethernet/xilinx/ll_temac.ko] undefined! ERROR: modpost: "__open64_2" [fs/hostfs/hostfs.ko] undefined! If I disable those five drivers, I can build and link a uml kernel without warnings. I could not find the difference compared to s390 here. Looking a bit further, I now find that we ended up disabling CONFIG_COMPILE_TEST entirely for arch/um, which is clearly an option that would also work for s390. Arnd