Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp12367318rwb; Sat, 26 Nov 2022 08:02:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ih651k9v8+EOX/7T/j9YBNIln06S5WK35x9PH3eQMkrxsLPcDOayNUFRDgwyQqkddyMvg X-Received: by 2002:a63:224c:0:b0:46b:8e9:747 with SMTP id t12-20020a63224c000000b0046b08e90747mr19839294pgm.365.1669478532052; Sat, 26 Nov 2022 08:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669478532; cv=none; d=google.com; s=arc-20160816; b=yM6jorTfXhFEoyn+b2N/MOju92iWLGHgYE6I6XWBFPUzXLJp/vqxD9ireWy/JctjiR Yzzm9AAkw32oJwewZSjRaa0ZvevO77QARSEWabXdhI0PUn+Rw8GpaBsWdUw+U7yo8SQk llCI67CM4Te5BxfAJVBjXarqEwGZ4M9G1sK7sqL7vLdPp4fz99SOi1fITie3nxj+RcUS 8VfBKX3wmkDfLgC7k+KAsC4CdISTJ5jvtucaZ1O33AyFmDFWKNQQRHZLlkJXI3RrFdUt /xbRFzwa+3KQ8Wg5X9GYFf1/albgZ48cJiOJZ2tjmb9UQGVytbvTFz0AuNC+yVynn/og nq8Q== 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=Tgp7IBbL7BvhfacCjaK4JQcHGTvfeIfJtmT+gqMydTc=; b=nzuE/dKzQjtFi0+UeQn/GnoBRaI+jLKevfOhcaIDfYT2xllCdRkOJdmXc7ssFEl9qt 5GIPLHJ+Ay2ZSaEeytL8DhwDyENRJDSJXw+Hqoe4ixk+s2f750GpmIDLjXrEfiDRDT7I j8qvqn7caBXZCQby7i0tnVNh0SYR9vSxyAvkwCXdQ/BevgIf5TnETZ9hi+5mNXqshMtZ pJE/cU5S1ZxLbswq3RNvQbOahNinjpimRKDKiqhZLKzki7BLoCbcTYx1hX8+ZxaTMxH7 +z2yZOTPEO6tkrJYnSMPesvtrOuAmixoSxatnsllILbD1w0qkWMtpHjdOUZ1Xjy4t95M 4pWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTiCoNiF; 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 h4-20020a655184000000b00476e8fca283si7663571pgq.725.2022.11.26.08.01.57; Sat, 26 Nov 2022 08:02:12 -0800 (PST) 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=XTiCoNiF; 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 S229641AbiKZPcM (ORCPT + 86 others); Sat, 26 Nov 2022 10:32:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiKZPcK (ORCPT ); Sat, 26 Nov 2022 10:32:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95FBB1CFD2 for ; Sat, 26 Nov 2022 07:32:09 -0800 (PST) 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 140A760B85 for ; Sat, 26 Nov 2022 15:32:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9ECAC433C1; Sat, 26 Nov 2022 15:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669476728; bh=2h++QTrAorI59jH3iOzNiOX8uGhWbeZh9J4UkZ1FyzY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XTiCoNiFxstsiQ35EmguH3iWYVBEe3apPBSsTx3XhGaH6OEnPLE73OcRJDA1TFzzf 3G5xP1gC1z9cmAtNIgerhIblRAmPkHDOEfr4XGBzsz9+8BJWW71+71cyduG14ubOxd iCjl6S0MQL2qWIUHflM/amzUvTLsZ/cGBhxbcpX+vX/OprEHM+0sAaQzfeQ84oHdDS tDsZRQvY7SkerNjM6DL9/uAsielxGaDuroSK6k4R262+5K97gDO3EmRQs8R7w7ecn6 v/bNBy13uGUtaRaStBGxFq5x3XvB9HBVG2BBSggNAfOrVMhWRPinZjUx0rrQ3To5Je 3E/eQnnf9MgOA== Date: Sat, 26 Nov 2022 15:32:04 +0000 From: Conor Dooley To: Samuel Holland Cc: Palmer Dabbelt , Albert Ou , Anup Patel , Heinrich Schuchardt , Paul Walmsley , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH] riscv: Fix NR_CPUS range conditions Message-ID: References: <20221126061557.3541-1-samuel@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221126061557.3541-1-samuel@sholland.org> X-Spam-Status: No, score=-7.1 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 On Sat, Nov 26, 2022 at 12:15:56AM -0600, Samuel Holland wrote: > The conditions reference the symbol SBI_V01, which does not exist. The > correct symbol is RISCV_SBI_V01. Huh, good spot. Reviewed-by: Conor Dooley > > Fixes: e623715f3d67 ("RISC-V: Increase range and default value of NR_CPUS") > Signed-off-by: Samuel Holland > --- > > arch/riscv/Kconfig | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index fec54872ab45..acbfe34c6a00 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -319,9 +319,9 @@ config SMP > config NR_CPUS > int "Maximum number of CPUs (2-512)" > depends on SMP > - range 2 512 if !SBI_V01 > - range 2 32 if SBI_V01 && 32BIT > - range 2 64 if SBI_V01 && 64BIT > + range 2 512 if !RISCV_SBI_V01 > + range 2 32 if RISCV_SBI_V01 && 32BIT > + range 2 64 if RISCV_SBI_V01 && 64BIT > default "32" if 32BIT > default "64" if 64BIT > > -- > 2.37.4 >