From patchwork Fri Jul 7 13:58:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 13304903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31DA2EB64DA for ; Fri, 7 Jul 2023 13:59:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AE5478D0007; Fri, 7 Jul 2023 09:59:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A95D58D0001; Fri, 7 Jul 2023 09:59:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 95C8B8D0007; Fri, 7 Jul 2023 09:59:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 839C18D0001 for ; Fri, 7 Jul 2023 09:59:17 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 51B361C8EE7 for ; Fri, 7 Jul 2023 13:59:17 +0000 (UTC) X-FDA: 80984972754.29.CA94FFA Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf30.hostedemail.com (Postfix) with ESMTP id 3289C80014 for ; Fri, 7 Jul 2023 13:59:14 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=hOllGMmz; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf30.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688738355; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=sC4UZ5LhNpjOJFleo9uAvg01y2IfXa2wUDSaFXs4svI=; b=hyJ1lTmVc7TjZcJgSqxsxIvGMli5GmvCyK5ZI3k0BSfSddA7o82a8Z/iVP9DF/XrSzGpLl EoMzRGZkPLAaPSCS0xKUOqReSS7BKADQXPrEtpO0Q6XIaVBxqqGB1VJ+0omgXWBCwX4Rub +R6ieLcWXnRrsr1vF8SA29HzyHFyoB8= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=hOllGMmz; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf30.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688738355; a=rsa-sha256; cv=none; b=iUbuvOOLiEgqBy1JQSLW3QmniftDx4yPrPDnE18Hse0JToVgcnJ4LW5iGsKbXCAYiHpz+o 6ETCAmvsVZRG1ar4BP9smoc6JdsNd6BgYqeIEGVsaSt6keqyEar/EybE9kQ/GqIwlRuajF 5JqYzLxCkR03htDR+O3uR/WvMRkdMkE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688738354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sC4UZ5LhNpjOJFleo9uAvg01y2IfXa2wUDSaFXs4svI=; b=hOllGMmzsOeXRnH9gcG0SvklbRyn0nUtpIcNLEeBxJHdbm5j+VJ55mDo3oeycyXpsy0Ki8 JI5STGCuf02jRTlzQLyJj4MhEE15zvaPSwoHdRPL0VDYMnMourAUJAupRdeDa+JDDbP+2K ZVS/JZA3QqNxUjjgKedys54XTkta0bE= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-282-rz09Yx07OJ2J9x61qdPxAw-1; Fri, 07 Jul 2023 09:59:12 -0400 X-MC-Unique: rz09Yx07OJ2J9x61qdPxAw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6643B3C0DDC1; Fri, 7 Jul 2023 13:59:10 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-39.pek2.redhat.com [10.72.12.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 33AC12166B25; Fri, 7 Jul 2023 13:58:55 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, schnelle@linux.ibm.com, vkoul@kernel.org, eli.billauer@gmail.com, arnd@arndb.de, gregkh@linuxfoundation.org, derek.kiernan@amd.com, dragan.cvetic@amd.com, linux@dominikbrodowski.net, Jonathan.Cameron@huawei.com, linus.walleij@linaro.org, tsbogend@alpha.franken.de, joyce.ooi@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, tglx@linutronix.de, maz@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, frowand.list@gmail.com, Baoquan He , kernel test robot Subject: [PATCH 0/8] Make several Kconfig options depend on HAS_IOMEM Date: Fri, 7 Jul 2023 21:58:44 +0800 Message-Id: <20230707135852.24292-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Rspamd-Que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x suiIGN5G h3yDYf+seld2GwpeW9Zt69KSj+u3hEXCgCxPjp8X8TEEzCtRcQzDcKXCulfxryOFK6k680aYEyZyzwCFT+VHBcWoiXG3A0uZ5yUWIqlPxd0AGKsq3VsCWL4uspaaM2D/ImTgXq35DJzyCDnV3kbg1XNu4h+YaumINDLt7g1WrtOVeJ5tA1bx+mwvL3o1PXaOAtdDpCspSAD8F9cvprEx3wgLSc+zgBx9mgPiypp85miUhBtigLLiOlHbuL/uskfCrrVFhzTu9ce282h0HulpWZGuv8G7KstvmViAE4hKS8YrlBAUn1A/YJJvJ12otORK8sUuycIm3/fXwbt9+PtHlPVPTpoWNJXlf5xD4fse87Ga1xfepDigst+WkUdbbbC0ZCrSRv+4ujcZeJRXFqfhwCwGUxw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: In thread of one patch posting, LKP test robot reported some compiling errors, paste the LKP report link here: https://lore.kernel.org/all/202306211329.ticOJCSv-lkp@intel.com/T/#u In the config file, several Kconfig options are like below: ------ '# CONFIG_PCI is not set' CONFIG_OF_EARLY_FLATTREE=y CONFIG_DMA_DECLARE_COHERENT=y ------ The reason is (words arranged from Niklas): === On s390 systems (aka mainframes), it has classic channel devices for networking and permanent storage that are currently even more common than PCI devices. Hence it could have a fully functional s390 kernel with CONFIG_PCI=n, then the relevant iomem mapping functions [including ioremap(), devm_ioremap(), etc.] are not available. So make several Kconfig options depend on HAS_IOMEM so that it won't build in those driver code if PCI is unset. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202306211329.ticOJCSv-lkp@intel.com/ Baoquan He (8): idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM char: xillybus: make XILLYBUS_OF depend on HAS_IOMEM misc: open-dice: make OPEN_DICE depend on HAS_IOMEM pcmcia : make PCMCIA depend on HAS_IOMEM net: altera-tse: make ALTERA_TSE depend on HAS_IOMEM irqchip/al-fic: make AL_FIC depend on HAS_IOMEM clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM of: make OF_EARLY_FLATTREE depend on HAS_IOMEM drivers/char/xillybus/Kconfig | 2 +- drivers/clk/Kconfig | 1 + drivers/dma/Kconfig | 2 ++ drivers/irqchip/Kconfig | 1 + drivers/misc/Kconfig | 1 + drivers/net/ethernet/altera/Kconfig | 1 + drivers/of/Kconfig | 2 +- drivers/pcmcia/Kconfig | 1 + 8 files changed, 9 insertions(+), 2 deletions(-)