Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5094590imw; Tue, 19 Jul 2022 21:15:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sO+m5KR/Xclb6mySg7DbcdwLAL/kk7Db/2G8y8XlZWqkwvCGjbBRgrUO0/a515AClIp60X X-Received: by 2002:a17:90b:3c8c:b0:1f2:205c:2480 with SMTP id pv12-20020a17090b3c8c00b001f2205c2480mr209580pjb.54.1658290501069; Tue, 19 Jul 2022 21:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658290501; cv=none; d=google.com; s=arc-20160816; b=nEmlkguHLyAH+LOJzqcxT8+KkT5NuWXw+P+oZU0mlU6tBnwKwDM0BMUEwfaq4mBM/c CRXMc6j3Hf6ZnGQl6bCuTyFumca+Yi5izlZaUhaMEmNEpl28ccPc9kHvKLS165ENTJzk 0J1YsgJ/OZjZXHAtGOgiwA77g4ic/rPdwuOuYurYnEDfR6f8PmE5jYwcjbFkJrPhK86V 1a7OolPHI4kiyUoejtaqVupBf/hlnBRriCsSMLNkL/urUCeXFS66zsoRz5JmOXChz3W1 tBzurr9rh/M6S6CDr98/R9zUvAIhygEzRC1mkkbDTTGSdNvv2gWS0gnW/vQ9MzQMPfSt SQCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jQvLOf1x68vVuVT6nv86fRJbOTDgpXyQepdy6HMrmbA=; b=OtXv1M5RUi7c/0oLhh336IT6ZEQFl33MLwzglUvrcNwRJilNvAC+jSAAn7GkEAzzaJ grn+NKfxf9jpkLOk0SVyaSGC8YGbHA3BgV47wh00yarqBe0TS07J7765ssIBFJ68n1B3 ml6ms3jqx7kPU0Q8Gbb4j1WSiOxKSg4cXiHJpqIVT5d+rsNa3uFYjDvOaIgDRRqn228D XZBSIqRxyfuKM4GnemGYq7y+PGxq/ceFekdphtEullfBLVML4YzcutfwcBwHeKSG8Wm7 7VNinPaFVt6Dns9BUTq87aqma0e3t0DV46hZmN/NDMxJJ4LN1lTReV+DA7VisVNAqAtJ mvlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HI87q3/M"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a170902f60600b0016c09d28af1si21650715plg.621.2022.07.19.21.14.46; Tue, 19 Jul 2022 21:15:01 -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=@kernel.org header.s=k20201202 header.b="HI87q3/M"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232103AbiGTEFS (ORCPT + 99 others); Wed, 20 Jul 2022 00:05:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231855AbiGTEFR (ORCPT ); Wed, 20 Jul 2022 00:05:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 780346254 for ; Tue, 19 Jul 2022 21:05:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 09E406140D for ; Wed, 20 Jul 2022 04:05:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6449AC341CB for ; Wed, 20 Jul 2022 04:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658289912; bh=CzFHa1T2nBUH30PXVGgIPY9OIkGOqT8aynKW1aD7qLc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HI87q3/M4gCZ9jBIvGGhF1Cc19IjYDyq2bfCREVi51oKn1oN7vub71W6kyRIn8jS7 xg+tQODt+cRX12s+n9iPyLZW9RcSQTRzWVAay9Ub8FacYMElthv4PZTT0n7nldy00i ARi/NMnHONmHPBqa9fWH8pAIh+5cZNmVETSrk+OYtR0J3+IeLI34kFkyTlpW2arb5s D+/8dzJ8D9s2OISmaUBgrGVoksdsZ0SdJ1Z9L+u53/euGdCyZf2GuSlQosIK5V607r 83PO5h4XN0zTcVsFu7Q/TSexSWPzApMRwFsSg3eEJsOwAOBsj+W7ErviLWI/YTGaQP HSaNglD7b2RBQ== Received: by mail-lf1-f53.google.com with SMTP id d12so28196687lfq.12 for ; Tue, 19 Jul 2022 21:05:12 -0700 (PDT) X-Gm-Message-State: AJIora+V8jghUMLQTgpcN3+iSgYFS1uKEIPD5b+HKdSrWwC0VHMV2i1F NOFua3RbAMCj5xZsVLpOqruJWlR3XaBTH+2r2+c= X-Received: by 2002:a05:6512:1394:b0:489:6a91:272a with SMTP id p20-20020a056512139400b004896a91272amr18121223lfa.424.1658289910426; Tue, 19 Jul 2022 21:05:10 -0700 (PDT) MIME-Version: 1.0 References: <20220709014929.14221-1-rdunlap@infradead.org> In-Reply-To: <20220709014929.14221-1-rdunlap@infradead.org> From: Guo Ren Date: Wed, 20 Jul 2022 12:04:58 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: fix RISCV_ISA_SVPBMT kconfig dependency warning To: Randy Dunlap Cc: Linux Kernel Mailing List , Wei Fu , Liu Shaohua , Heiko Stuebner , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Reviewed-by: Guo Ren On Sat, Jul 9, 2022 at 9:49 AM Randy Dunlap wrote: > > RISCV_ISA_SVPBMT selects RISCV_ALTERNATIVE which depends on !XIP_KERNEL. > Therefore RISCV_ISA_SVPBMT should also depend on !XIP_KERNEL so > quieten this kconfig warning: > > WARNING: unmet direct dependencies detected for RISCV_ALTERNATIVE > Depends on [n]: !XIP_KERNEL [=y] > Selected by [y]: > - RISCV_ISA_SVPBMT [=y] && 64BIT [=y] && MMU [=y] > > Fixes: ff689fd21cb1 ("riscv: add RISC-V Svpbmt extension support") > Signed-off-by: Randy Dunlap > Cc: Wei Fu > Cc: Liu Shaohua > Cc: Guo Ren > Cc: Heiko Stuebner > Cc: Paul Walmsley > Cc: Palmer Dabbelt > Cc: Albert Ou > Cc: linux-riscv@lists.infradead.org > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -362,6 +362,7 @@ config RISCV_ISA_C > config RISCV_ISA_SVPBMT > bool "SVPBMT extension support" > depends on 64BIT && MMU > + depends on !XIP_KERNEL > select RISCV_ALTERNATIVE > default y > help -- Best Regards Guo Ren