Message ID | 20230707135852.24292-4-bhe@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 C6FE2EB64DA for <linux-mm@archiver.kernel.org>; Fri, 7 Jul 2023 14:00:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 678298E0003; Fri, 7 Jul 2023 10:00:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 628B28D0001; Fri, 7 Jul 2023 10:00:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4C9DB8E0003; Fri, 7 Jul 2023 10:00:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3DEC18D0001 for <linux-mm@kvack.org>; Fri, 7 Jul 2023 10:00:03 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A4DBC1A0DC7 for <linux-mm@kvack.org>; Fri, 7 Jul 2023 14:00:02 +0000 (UTC) X-FDA: 80984974644.26.514EAAE Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf27.hostedemail.com (Postfix) with ESMTP id 592D640010 for <linux-mm@kvack.org>; Fri, 7 Jul 2023 13:59:59 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Hfvv+j2x; spf=pass (imf27.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688738400; a=rsa-sha256; cv=none; b=v2qKK/jNIz8SKzXh1D1Z2ZfwOrGAzJPZgxSWZiHhd4hm0C48qLlXwguxaNUjzw1HuijBIC ROMavz14LiUo1cQXuqurMem+l6N9J0lfOKaNioWiEqI/CsTzfmIPDwt/Rt+YnXa86W8659 TdhUjvZAm9n/johfyRGHyqpKnzycKJ8= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Hfvv+j2x; spf=pass (imf27.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688738400; 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:in-reply-to:references:references:dkim-signature; bh=JY3wTP5/IT5Fuk6lBBENe/zUdzUPUkbX4RiZeJtGthU=; b=oUsKszXVXnKMoJKjftXzKcCLs4bK50uWmeY5QYkAvUwu97U9CpC23eWarqY0k9JATijr5D j1D383kHYlMpWTMzAQQqOFczLAzsgixA1RhQ3LgYvbNq8F0yZSE/QyBB5pHVbNr1Uieyey s6X2vA/rozb8++ZtVq5tu5PVvM8uiEo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688738399; 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: in-reply-to:in-reply-to:references:references; bh=JY3wTP5/IT5Fuk6lBBENe/zUdzUPUkbX4RiZeJtGthU=; b=Hfvv+j2xcJoQj9OrkpSxiT0/QSjeX0oPEbg3RnboDvUSBuDqdau3HQiyuI2+ELCVaChcKS khZxilkiC9LYAw7MiUANtt+KTa6oQaqZpAX0vTta5B5Q7BFEwseEmyXkIjMW9i4TCh8GOG DIrNst9I1CFDpbBf2MOYCS+H+o3e/WA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-613-sTmYJ2YlOgSgjm1LqC6m8A-1; Fri, 07 Jul 2023 09:59:54 -0400 X-MC-Unique: sTmYJ2YlOgSgjm1LqC6m8A-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 3B5BB856F66; Fri, 7 Jul 2023 13:59:53 +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 315AB2166B25; Fri, 7 Jul 2023 13:59:39 +0000 (UTC) From: Baoquan He <bhe@redhat.com> 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 <bhe@redhat.com>, kernel test robot <lkp@intel.com> Subject: [PATCH 3/8] misc: open-dice: make OPEN_DICE depend on HAS_IOMEM Date: Fri, 7 Jul 2023 21:58:47 +0800 Message-Id: <20230707135852.24292-4-bhe@redhat.com> In-Reply-To: <20230707135852.24292-1-bhe@redhat.com> References: <20230707135852.24292-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 592D640010 X-Stat-Signature: 738q9yt7rt8ruwxj11b58ywjxp169hhe X-Rspam-User: X-HE-Tag: 1688738399-342840 X-HE-Meta: U2FsdGVkX190GdpgsQfqF/l4Wng8PveR8u/96UZ71yR5TwqKwic1XF0Cn+tT7nATOYgqnImMM0f68WAsOhiecoKYw6ytpsiYhRMWZq/lq4roAqorc1JXZVrmLLoOFKjfT3JGP95ihakYtdsxIXx6pbKrlaaM1bZDWM9R4nLOCUPinq6yDb83Ckc1H0T/b/jc7AdPmr4hX5Qz8/nztJQF3OctaOGRJj3SfKI4MLBigsl0Z2mEghepalI90A4Fzh5AmYSYwh99aqQQaBcSdtl24QTQLaWzbv7AzpLFBqwNMwOMBvbn17xiKVkaSDMfZ4sPoRT13Abg+vH/n3TVg9EtoMquy/6T+mgPe5eISbxchiCoqkUTpgnFGl0AtktEbykxmTtnG2adQVxd709gFrR7hJQIcTI0l5Cgv7racgWE4EcNiAwxZMl6qHd6WZ+t1djHSmuigvicovriOITJ2c8jdCoVBUaEk6s2NS93nEu1LAs9Am8ug1rt4twu9baGwuBeevJ0UZGwR+sx9Wag7D0Z1UxBQ/scr2RuCXoVsfJHyC+FEI1lp3L8BgDHgeQ2grwDmhVpHafOfiCpOuJ7rsU1CYlmOs01J8OMWltFsrR9HO9w4lXXSfvKpsUxwKXQSBpEyDUD09K0d5VlPUGQXP3S32z7Q+tdFq+mTEZ5dXRU/NSyhisjjJe+HwJoCHvk72C2rjHN3cd76MN0zlsFlM5C8w0q96bxA41Gim5cxahiYYxH0AUKpXb+fBEpTXjZVpkjacinwoBAT2Y6U1Yfe07Vl7F4OvVvrTaewEZ2u4Mq2eVPG0XWXg6eSsKz1BN7N42PAAt4SUFZZVOYdlIhoZjuXoU4vW8ZJYgzdIzIdUptly7E4XLbaAzy8qOELuMlvOGr3W4TJhsgjgeNEsIgDkZt947OVfpOHKbYHkoJbnBUznNcaF3G8sHU5IlnKIENES8nbzG2DyRhAO+h65+KdeH H/rYFDIk 3tqJRmPdTrKe0WN27U2FW2aeqkAb2jhTkepi3Bs0QgYy8bnSd1Tq5JIt+chWHryFa7c0uLFG2bQyDK1K9GqNGNwEV6yap6+IuWh+LnTyjXD/LM8iZkgWDv5SDe4VWqtfrnDAvMOzkKrtvUctq8rl9Kw3AjassyWHZsMXqpaEf/ittGTObgj5u8h+WX4AWXpsrpxBPi21QGKhrmQ7Aa4V0kCIEmu8uv01BUtcfv4RGYc03Iejpnt/TTMyTT07Y+kB62KgJuKjU+D02ZxrQCadmSejv2iKF5uQHVv711z+wHfZo6QOSnWSid9gwHExlkLopIjc/c4nLbImqs9V1dpkG5rKJ41sQySJ5FVxX6hRmGEDL5Bjl8fiM7YDTY8KULbkmhBUy/nIYWZvEenmAyJfDcCekwu+kBP0Hou9iZLI6QExp9vUqthCvsI3i7U4os3XzxJLNR3pKuMPNv34= 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: <linux-mm.kvack.org> |
Series |
Make several Kconfig options depend on HAS_IOMEM
|
expand
|
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index 75e427f124b2..cadd4a820c03 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -496,6 +496,7 @@ config HISI_HIKEY_USB config OPEN_DICE tristate "Open Profile for DICE driver" depends on OF_RESERVED_MEM + depends on HAS_IOMEM help This driver exposes a DICE reserved memory region to userspace via a character device. The memory region contains Compound Device
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. Here let OPEN_DICE depend on HAS_IOMEM so that it won't be built to cause below compiling error if PCI is unset: ------ ERROR: modpost: "devm_memremap" [drivers/misc/open-dice.ko] undefined! ERROR: modpost: "devm_memunmap" [drivers/misc/open-dice.ko] undefined! ------ Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202306211329.ticOJCSv-lkp@intel.com/ Signed-off-by: Baoquan He <bhe@redhat.com> Cc: Derek Kiernan <derek.kiernan@amd.com> Cc: Dragan Cvetic <dragan.cvetic@amd.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- drivers/misc/Kconfig | 1 + 1 file changed, 1 insertion(+)