Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1061349rdb; Tue, 19 Sep 2023 20:32:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEntDzfDGohR7m4NHeAhI9eMMkAb6Q2Mi/2yBHG8PRZWAJWPJwWAD5W9b6Gbga6ouzkXF9J X-Received: by 2002:a5b:28d:0:b0:d77:e0c1:2f39 with SMTP id x13-20020a5b028d000000b00d77e0c12f39mr1268909ybl.24.1695180732271; Tue, 19 Sep 2023 20:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695180732; cv=none; d=google.com; s=arc-20160816; b=FuCbrirNk8+PI3/oLUqysgVUIwXkfoh8Gl8JxSWOLzlnBZqLcLvxgB/6xDsas3qjDy OyDrwwEC2qvb8sdSjCuFWEHa8cboUrsFft/nxG2zflswUuzAI8V9810Wq9O/5PMB4iIA Goa6Vuk0wNrj7Z8vOwGiAPTIJsc8iYJm3uK9B43ZwG+t1lItxjk3e6ugzRV1V3CzSLD6 0QJM+WeDehvwbYRbfr6lqYmqVFwvXtXblAHs07zglaI/sf6qLuVQl+WP5puJ1q3bWmV+ QsEsLxlIawgViCfCeEOT9D29Z/NIMosRBiU2Gu3G7Plln9o6ynhCvcBsaQGVXkkoxpFf wpRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Xkqfo5dC6ZYdCvzqLTtK19B41PnDmTyUx9YrE9u00ik=; fh=0bBpiqnL/UnJzFsONbE8kWKPhMcALgm1ub84qFMAFww=; b=oRSg+JGHk1eMwh0zLPKrVmvrlXDPF/1n3LhwogfELj4OW1E9fMI+9CnTxGg2w1Hnr9 T8RODn/GTqkJ91KQh0b3DCr+Ff1LRFCpTOEWjD4rFw109GylDY+L3VRHmDcy2EX4PjKt f20bSEzCV+MBawUTL7Hndto8OFOAMHNsLdch2RYNRU8nkvGtd7HJYh7Ymi6aRac66qdn 8WxDpVwhCnXEqmLEmd0tACBH3/HbVUp6wCD7WPrRxeacpIH3BFMYPlW9cRlOp6+Jj7N8 Ccj5epK5q+dDbEQCof8zRk8szWWmBDgLgxGgF89UlfQszdrHifA1psTn3B2xz37Cjba4 caqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id r22-20020a638f56000000b005648d3f2031si10661136pgn.362.2023.09.19.20.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 20:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3329D833CE12; Tue, 19 Sep 2023 20:18:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232376AbjITDSC (ORCPT + 99 others); Tue, 19 Sep 2023 23:18:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjITDSA (ORCPT ); Tue, 19 Sep 2023 23:18:00 -0400 Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042D4B0 for ; Tue, 19 Sep 2023 20:17:52 -0700 (PDT) Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 38K3HiGf052118; Wed, 20 Sep 2023 11:17:44 +0800 (+08) (envelope-from peterlin@andestech.com) Received: from APC323 (10.0.12.98) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Wed, 20 Sep 2023 11:17:39 +0800 Date: Wed, 20 Sep 2023 11:17:36 +0800 From: Yu-Chien Peter Lin To: Conor Dooley CC: , , , , , , , , Subject: Re: [PATCH v2 1/3] riscv: Improve PTDUMP to show RSW with non-zero value Message-ID: References: <20230914014027.273002-1-peterlin@andestech.com> <20230918-cassette-exclusion-b2ce53745a5c@wendy> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230918-cassette-exclusion-b2ce53745a5c@wendy> User-Agent: Mutt/2.2.10 (2023-03-25) X-Originating-IP: [10.0.12.98] X-DNSRBL: X-SPAM-SOURCE-CHECK: pass X-MAIL: Atcsqr.andestech.com 38K3HiGf052118 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 19 Sep 2023 20:18:00 -0700 (PDT) On Mon, Sep 18, 2023 at 01:53:13PM +0100, Conor Dooley wrote: > On Thu, Sep 14, 2023 at 09:40:25AM +0800, Yu Chien Peter Lin wrote: > > > + val = st->current_prot & pte_bits[i].mask; > > + if (val) { > > + if (pte_bits[i].mask == _PAGE_SOFT) > > + sprintf(s, pte_bits[i].set, val >> 8); > > + else > > + sprintf(s, "%s", pte_bits[i].set); > > + } else > > + sprintf(s, "%s", pte_bits[i].clear); > > + > > just a nit, but checkpatch in the automation is whinging that you have > forgotten to add {} around both branches if this if statement. Hi Conor, Will fix the warning. Thanks, Peter Lin