Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31973852rwd; Fri, 7 Jul 2023 07:05:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHgiEvEmbbaT4w+/51z+mJCoieSfhXNjXvKBojF63FlIGP4/ysBMxg4CKAOpOgVpVGKeTD2 X-Received: by 2002:a05:6870:15c2:b0:1b3:ecd4:6f9f with SMTP id k2-20020a05687015c200b001b3ecd46f9fmr6219426oad.58.1688738705182; Fri, 07 Jul 2023 07:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688738705; cv=none; d=google.com; s=arc-20160816; b=ie2MCIOZRs+i+V/I1WmdLBir7NUTaQ0XXMnTItsKnnCWrnUYuJY+VkYzc1qUlvwWEX o4Mf3pBCG5yPmSxotVvqLRgB6QFXWHu04AMgBSOG91ymDbWuFcNrBj4qDNq90K3uUklX XZSPL4ev5FF9gv6wxZ5sZRaDsnPlosy10flMvkypYX1+r/95i0NXmqSG8a2iCDsfUVC4 86JRimBChxN0MbOJIEHYMiloxy53lu5r+pSCZxORIK5x61PmuEsT9I3bt4ElKzEQ0pKw AzbLBo1CDgLmC7yxIIbcp5z0UEUk9cUcMl3iWYK5gbwld4z+i6bPKjEVLb4QXngci/TG AMCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JY3wTP5/IT5Fuk6lBBENe/zUdzUPUkbX4RiZeJtGthU=; fh=INcnS+yX2NBDfIB23aYzu5gfxH1rW6lB53wHwdUYBVs=; b=00oMQ0O4RHEtZy033eOQAsnWb1zxNdRriw01WUM70/wH0uV0kWn9w3jH35qAVKAvlG mhDA2y3k4Dj2RDgPvtIyLLOKm8wMPd2ZH/O+2NAeR6WmCm1b3PljeSRBEGflyra+bJV6 3gkR8cRt1yCI4SSecoY9Qp8Rck4ixi1syIea6gd76UgPQgenJen5Xk+hzVfiX5/Ug/5n Ku9NpAChfGov99OHglsB7eREHFhEuttD0ISiZtASB+vrgVXvqqoD4qpiQhbwNQhendhx GmsFzFT/KdAQTmyD0HOjr5h+nc536IwZrMXeiveSN7VIgbQHJJHOBQr+7mBjK5i1KkG8 KTYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JB2MwhYb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a05687080d400b001aa2fb1a73bsi1816664oab.192.2023.07.07.07.04.51; Fri, 07 Jul 2023 07:05:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JB2MwhYb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232641AbjGGOAw (ORCPT + 99 others); Fri, 7 Jul 2023 10:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232692AbjGGOAr (ORCPT ); Fri, 7 Jul 2023 10:00:47 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07FAC2108 for ; Fri, 7 Jul 2023 06:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688738397; 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=JB2MwhYb3QC5hAHEFw6rugZGalAldUZIXQF/mBZxJQEbcwIDvpI++y5lE1I72ra4N9zp8n MdZcWi1SoDUSMgfyuKW1V9f8MCPnnuYDPwXL9QoZSg/BzurPGu/vILJ8OP1nTAFs09idRf DC8+fIlOoghoJljcUgsfdmszz/43f0M= 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 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 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Closes: https://lore.kernel.org/oe-kbuild-all/202306211329.ticOJCSv-lkp@intel.com/ Signed-off-by: Baoquan He Cc: Derek Kiernan Cc: Dragan Cvetic Cc: Arnd Bergmann Cc: Greg Kroah-Hartman --- drivers/misc/Kconfig | 1 + 1 file changed, 1 insertion(+) 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 -- 2.34.1