Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4077954pxb; Tue, 17 Nov 2020 10:38:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyA7/hi2wQf+Xo3vGDfFlentD2dbhRiI/c/qSxuD3ZwZnHlqgMxthE0NKbMzCwaeEYiymdB X-Received: by 2002:a17:906:4dd3:: with SMTP id f19mr19439018ejw.364.1605638305907; Tue, 17 Nov 2020 10:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605638305; cv=none; d=google.com; s=arc-20160816; b=VyfDglz//AlkKKmr0bZ6VCXGICi86PEy7HVC9OllX1NDebJmGsEOI13I2JzyRmZ8e2 0edtiGuUVudV+OEUkchEKqLnd5Y6HAEj3jqXlP1yMtykf4PmBYLWc+9X/o1UpUszBRdY eA2tsQ9wcOCaJzBYhWHeQep0bDqZQ9eFPaTUMPr9dC8jKzp9VqZX54rhM18uXJhgt0Qq d7upoCye/Q5Ws4B02sqJtsNn6sJgkpJP7jqBMMPOPZBIX9W0oJQnXRe5aQy86HDsYUbJ E8pas1Kze+nxRurOLr5MK9Lj4UbjCm+YfEWMBe0RdvNgWGm0GKpgqQJ4F4UebMPMo3gx Jleg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=1AA8O1d406vYycb3bYf4dXKFr0iuvkHhIVLvNva/Pgw=; b=0H2LKyjlO1O9fSIw/SGhQlOgyGA10a05Y2E8JfTVSTUxXgHtJ8Fo8EPvSBZ0cGmLKP S+qQugdeQhxHjDt/LMMm/n+jluPkSEo4vDbVTdQ8FwP5XCGhzoHIyxRUUR3forCgcbiJ 22OrDOh65jSrrpsNR2o5EavDWB8vyPtd88fRsNiEw8JuBUzNyb0M++CpQ+XjlXXwCRpt e+Nwzj0FRg09ose3StnRu/QBslmN1fxnmDE6u9INtlZ2lwZohNefGuOa7OnuotjAJ+ME UzUbnKgTukRNP11PK3XHkEgRINdMe6dTC8VwaEsoidxAsjuztJI+Ocg7EHxy+93Z8wfR V+dw== ARC-Authentication-Results: i=1; mx.google.com; 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 a9si15318320edq.466.2020.11.17.10.38.01; Tue, 17 Nov 2020 10:38:25 -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; 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 S1730770AbgKQSfA (ORCPT + 99 others); Tue, 17 Nov 2020 13:35:00 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:44850 "EHLO mail-wr1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727800AbgKQSfA (ORCPT ); Tue, 17 Nov 2020 13:35:00 -0500 Received: by mail-wr1-f43.google.com with SMTP id c17so24167033wrc.11; Tue, 17 Nov 2020 10:34:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1AA8O1d406vYycb3bYf4dXKFr0iuvkHhIVLvNva/Pgw=; b=U/hOI5YeHFZb4Yctyp5ik3McTfJgZ4StaDddQmwJuBLIuyDsY0dgLAhqNOP5T3Fg9U Hz5GIi6F2PZOJMskycTN21KVCBmKSBxR2c0AGByJFTZiIv1eNBp0Mtyc+SjvW4dkvqZ/ Yp+Ul/S7AfsIG/VU2ELaxwhAHssYbubF3U2V2BTfwnyLoEgq+X/8tXlgnc6lPUSMuGa/ iO908g9jIddHwwOpIFXJ/nqaNLpV7o/nDXI0sJXdhjKXl8D4ibI3BIzrcpqw+20OqY0v m4CeM0HYWyKo88o39hr4Zcg4PaH+xmTQ/QA3Fk/R4pzLDQm3KYHx2Wr5tzj6us5B0Snd D8BQ== X-Gm-Message-State: AOAM530h5Ts2CVkMNfzi9OpeN65Qt0xQ2M6/RlGrr2Qw81aQxX3iJidR Jo/7Z8LJ4p2K1wnol6iH35Q= X-Received: by 2002:a5d:5001:: with SMTP id e1mr928338wrt.20.1605638097837; Tue, 17 Nov 2020 10:34:57 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id r10sm4713070wmg.16.2020.11.17.10.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 10:34:56 -0800 (PST) Date: Tue, 17 Nov 2020 19:34:55 +0100 From: Krzysztof Kozlowski To: Arnd Bergmann Cc: Geert Uytterhoeven , 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 , Greg Kroah-Hartman Subject: Re: irq-loongson-pch-pic.c:undefined reference to `of_iomap' Message-ID: <20201117183455.GA101572@kozik-lap> References: <202011140757.5QyVghe2-lkp@intel.com> <4f6f2244-033c-8413-818d-0b9c1b0b33ae@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 10:21:26AM +0100, Arnd Bergmann wrote: > 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. Yes, that was the easier solution than to spread "depends on HAS_IOMEM" all over Kconfigs. +Cc Greg KH, I got similar report around phy drivers: https://lore.kernel.org/lkml/202011140335.tceVqHmN-lkp@intel.com/ When reproducing this, I saw multiple unmet dependencies on s390 for MFD_SYSCON and MFD_STM32_TIMERS. I suppose there is no point to fix them all because this will be basically UML case, so HAS_IOMEM all over the tree. Best regards, Krzysztof