Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16328576rwd; Mon, 26 Jun 2023 08:34:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7a8ALFLRP+HKhI7yfH8zDRbbyYGshJ5BDcjG7/ZFei7K4dgojl8NJZLD90uqF0FiG1ZSYS X-Received: by 2002:a05:6a21:3293:b0:10a:ee1b:fdc4 with SMTP id yt19-20020a056a21329300b0010aee1bfdc4mr37086372pzb.47.1687793690559; Mon, 26 Jun 2023 08:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687793690; cv=none; d=google.com; s=arc-20160816; b=u79RZVWKuslnMjmUIMj59ywi6JwniKXE6LfbTwXPqIkmDrGB2lry8vk4d0tJRX9v1W iI1l5Nsh6tht6K45CNKX2Y43/R0CKsWptQwzHlyaU3VvnZP+XeVTD9LQFXDMyKR2ZW8A hffGaS9jF5pQapHaFHerx9VAsm9az8yWNdNIBFPuEiRzg2dkEe+Ge5ePjGQka7Dkj7CA u5ZeINnH9ovYv4zABCE3WhIkoxPjur9VDL+Ds+n1gMZJFOA2dkVVVuNu8ASBsLcXSCtL sYzDMGj5uMDDflhBN1scUDzTr4iFBwLnK26xRNURHjvi5gcDXEFS8va8lbRFfVb/8Ufk TzNg== 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=Czk7x5n6Mrmu3uCgM3g0XObvviS7O6LtljfnSRp8Lu4=; fh=eDyL5ggi3QA2lUAMhTIWyT+Jvf7EvO+CGMeIH+M3i30=; b=EFjMTaFNmm5PqU+heUxQwJlkZuciDlmFhEqUPPUuenBM/HYuoIHrTuMNAkx73EDQHP nPs3w8QRHaIAcjjtmh//03CHmRSO249vb1Addjqr6pj5iJwPST8l34GOq14lGITMDTpH 0pV9VTmGYrypCcnJoy+X0bK2M6yznuHzVmwjt6ZMv4yOFykga9o4hnW8xH/7jb6kMr58 zy+ouBu6ohXdlXeL3ylZPuGs2CzaZtRPIK06KmnhHqy4f/SOhveODAK296Rd3kUI3SwY hVGRoRY10uVYeGJgkKMHxKQCDh8a65s+LdRtnZQHeGCCRZIFHg3ESN++RuHA5GUgdm2/ ikoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=jtGX7siB; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h64-20020a638343000000b0054fdb022ce1si5245542pge.219.2023.06.26.08.34.37; Mon, 26 Jun 2023 08:34:50 -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=@ventanamicro.com header.s=google header.b=jtGX7siB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbjFZPTS (ORCPT + 99 others); Mon, 26 Jun 2023 11:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230514AbjFZPTO (ORCPT ); Mon, 26 Jun 2023 11:19:14 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3612410D5 for ; Mon, 26 Jun 2023 08:19:12 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b69dcf45faso21321631fa.0 for ; Mon, 26 Jun 2023 08:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1687792750; x=1690384750; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Czk7x5n6Mrmu3uCgM3g0XObvviS7O6LtljfnSRp8Lu4=; b=jtGX7siBQsyT+P/YzALMFWZBXNwz5KO8DiHH5xFg5dR7umyNG/JCelf8OHbIvwd00H L5aYgm3pIsNnnksn6odR+lIoNlgt+sIY1PYazdO5A0j2lzeuyAspG64RLq9XgC/W6Io3 Q02ZhpuJPhZs8+voHoBl7lRYZK+fLMLd2z8QVg90dZkOaWXoBCeCOlGJillHy04rmWOU VYLIQHkAuqo9ZTyXbkMpOB0JvezN9Up+nXHeOa21mmvl7LJV2BLbobdAzM4OpunDkBjW 7+kRGIyUAotwRjhGuwEjypdFfOl9JpAtQ58RxwTYW75+4M4ffp8qdUjjmbWhxKcvTq00 23CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687792750; x=1690384750; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Czk7x5n6Mrmu3uCgM3g0XObvviS7O6LtljfnSRp8Lu4=; b=Sjr0Ja42P34O6NcswOO5OVqBj7nnpH6JTpG27r7ukQIkvkKhV2GljxBEgxJhX08/ay WyVNq0AP5kKEcWkezPeTmit9GixWSztUt7zA9+6Qxy5nVP1W9TuiPX1lpFm7iew6G1rI uHrPYY+4Iy2V9Ze0ZldOq7locbg28pJjGBwMLsFheL/fd2p6/RhDbkA8ojbXmmCpodMQ X+UhxnF4f3BP6plANzOvs0gaRNYbNuAffQzyzHbG64TI6BsbUsYXThjVmyJ7guQ+89o7 B6CEqEVKZCqiChLM3fqn82lgp/QNmjqGAf9NO0mCm7oj3gmq8SMI+ob5CnO/Ba6TO+8h P2vQ== X-Gm-Message-State: AC+VfDytDmw2DlcYVbwXK9wSDk6Vz7qX8EIbA92p7/61BVYSaCNvOUpH 9JwjXrhuWNvfncwRHw8ZW4xBtw== X-Received: by 2002:a2e:7306:0:b0:2b6:9930:871 with SMTP id o6-20020a2e7306000000b002b699300871mr2554964ljc.13.1687792750438; Mon, 26 Jun 2023 08:19:10 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id p21-20020a170906499500b0097404f4a124sm3399047eju.2.2023.06.26.08.19.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 08:19:09 -0700 (PDT) Date: Mon, 26 Jun 2023 17:19:08 +0200 From: Andrew Jones To: Conor Dooley Cc: palmer@dabbelt.com, conor@kernel.org, Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Albert Ou , Heiko Stuebner , Evan Green , Sunil V L , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/9] RISC-V: drop a needless check in print_isa_ext() Message-ID: <20230626-67e571e6d9f02c28a09dab33@orel> References: <20230626-provable-angrily-81760e8c3cc6@wendy> <20230626-skydiver-frown-659b982a43ad@wendy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230626-skydiver-frown-659b982a43ad@wendy> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, Jun 26, 2023 at 12:19:40PM +0100, Conor Dooley wrote: > isa_ext_arr cannot be empty, as some of the extensions within it are > always built into the kernel. This is only true since commit 07edc32779e3 ("RISC-V: always report presence of extensions formerly part of the base ISA"), right? If so, it might be nice to call that commit out in this commit message. > > Signed-off-by: Conor Dooley > --- > arch/riscv/kernel/cpu.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/riscv/kernel/cpu.c b/arch/riscv/kernel/cpu.c > index 742bb42e7e86..01f7e5c62997 100644 > --- a/arch/riscv/kernel/cpu.c > +++ b/arch/riscv/kernel/cpu.c > @@ -233,10 +233,6 @@ static void print_isa_ext(struct seq_file *f) > > arr_sz = ARRAY_SIZE(isa_ext_arr) - 1; > > - /* No extension support available */ > - if (arr_sz <= 0) > - return; > - > for (i = 0; i <= arr_sz; i++) { > edata = &isa_ext_arr[i]; > if (!__riscv_isa_extension_available(NULL, edata->isa_ext_id)) > -- > 2.40.1 > Otherwise, Reviewed-by: Andrew Jones Thanks, drew