Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4074379pxb; Tue, 17 Nov 2020 10:32:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2H66j31mqKpnlCCFEuJe6n+ElKzQoCpDSaYcW2TF5tRLUmPtT3yLIi/uVoLnc8o09Uu6T X-Received: by 2002:aa7:c34c:: with SMTP id j12mr22866352edr.17.1605637959135; Tue, 17 Nov 2020 10:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605637959; cv=none; d=google.com; s=arc-20160816; b=cnSX83VC/NJsjBYOPxGtEViNH8uR9sugn2rxI9ZRCr13BvpXxgHe2LYzPFD5hxqu/+ MCLMpC+wNx3y7hfzyH5SO5+yDqXxwzY7kUfdHphv6FoSegynkPTIiqso78QC23BCTu0g uzVTp6l0X3WKy1fLmOkbERlvDM85BsD44pvjQy+PjUw4XNzezWZW1B27edbZYcCZzL4a uVGj4H9LDaXuUfmRiNyf0802xIQ0bUsaA/wy1TJ7HeIMEaTN8WaWNm9wmPLbPpanVUdq RUv0gq/YvnTvzxYke6NiSWykpm1VaXx3wLjyt1pTDfImB9HJlBELmOIpQWYkjNhyU896 vBng== 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:dkim-signature; bh=2CJgzSbOUQ6wibdW0bKgl/Zk2m8OEwb7Gzy5jLlOBwU=; b=Sqih1I8+UAiyf985y1ufme25tkeiZjKyGOsNYdEj//ZivfKLkBR4r1bTdYbc8q1wvj Gti0nkQoMH8UNu2ggfPePZCZHvIT6ki0emXh+ZRWSME01WEmRbrDfNZ9rN212fATQ5Ht VFK1uAWFLBhqiAccJuBEbrxLFf9bbkFUa633avb9YpqIMfhhVCm8rTCjreRSOEBAkJjI 3HSgNXs5cNk6q749VPpJvDtbrr454FAVyUY8bi2rqji56jdTmmydKfDYkNhWjdKFkZQy dpUyBl8yEoPNfa0m+tp929q4xcpaxKeupaVC/9YZCSpIatG9yLxS6eJDorCWIUfv8dLq Cdhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="isB/BO4K"; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si14212534edy.473.2020.11.17.10.32.14; Tue, 17 Nov 2020 10:32:39 -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=@ibm.com header.s=pp1 header.b="isB/BO4K"; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731239AbgKQS3V (ORCPT + 99 others); Tue, 17 Nov 2020 13:29:21 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:24840 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731055AbgKQS3S (ORCPT ); Tue, 17 Nov 2020 13:29:18 -0500 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AHI1ubr114709; Tue, 17 Nov 2020 13:28:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=2CJgzSbOUQ6wibdW0bKgl/Zk2m8OEwb7Gzy5jLlOBwU=; b=isB/BO4K03WkAzjpGSHzVaCzOTcndAULD9y0Qi+zOk5C6OBRroLQiie6tJ4L5FfPg+/2 5eSy+lwcgK2HvW2cK+ZFuOB2nVMM6uu90QAyZNBYAxOdxn+W3WDki30Y9wHaMYmyByX6 NTNqt3a7d5hWMsHPXCYSDO5iSEej+pMpCFQ7x1+Xp7KYXjxh+/dSP4H/wlhIN0cKzsgS 0lsh5VxBg+bFg7/7yBufLBFoHKkVi8sgilKy9T5BlQJ5dvHGcS6ZYsokur/ygHEfyybi 98k3IvpnLlDPCtXcEvFe5E6yHOnqLIcwo1nuzMbuqd7+QnNy3tOh3/f/6LXfM/N2gFRp Iw== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 34vexss2jc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Nov 2020 13:28:53 -0500 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0AHISRmV000808; Tue, 17 Nov 2020 18:28:50 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma06ams.nl.ibm.com with ESMTP id 34t6gh3d68-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Nov 2020 18:28:50 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0AHISlHj66715960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Nov 2020 18:28:47 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 588D6A405F; Tue, 17 Nov 2020 18:28:47 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D5E4CA4054; Tue, 17 Nov 2020 18:28:46 +0000 (GMT) Received: from osiris (unknown [9.171.25.24]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 17 Nov 2020 18:28:46 +0000 (GMT) Date: Tue, 17 Nov 2020 19:28:45 +0100 From: Heiko Carstens 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 , Vasily Gorbik , Christian Borntraeger Subject: Re: irq-loongson-pch-pic.c:undefined reference to `of_iomap' Message-ID: <20201117182845.GB4746@osiris> References: <202011140757.5QyVghe2-lkp@intel.com> <4f6f2244-033c-8413-818d-0b9c1b0b33ae@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-17_06:2020-11-17,2020-11-17 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 phishscore=0 mlxlogscore=734 malwarescore=0 clxscore=1011 spamscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 mlxscore=0 suspectscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011170127 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: > > 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. I'll add a patch to the s390 tree which disables CONFIG_COMPILE_TEST for s390. I wouldn't like to start again chasing/adding missing 'select' or 'depends on' statements in various config files.