Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp136655rdb; Mon, 18 Sep 2023 10:14:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfKvt7V+LhsiMlYy02xYMyZWqQhYTb3UPlHASwBrXujMG47grZhL0XJabHAXuZbMsHhSpA X-Received: by 2002:a17:902:be0a:b0:1c3:90c7:b99d with SMTP id r10-20020a170902be0a00b001c390c7b99dmr8359863pls.41.1695057244204; Mon, 18 Sep 2023 10:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695057244; cv=none; d=google.com; s=arc-20160816; b=tF24qkfTdF58veWWWHwH9Dnl8B4dfIryWh7qARHJKuxTQWQfqZE/KXZYczlFm/ee1a j2RlCWWAXa5djqPtthA+5vvzjEoieLfWU6WuO5ZT8/Ky70hFL+7AzHW84OvpijJFfbxl WMgtR8EEAUeD+g10M+3lGha6xdtwZBCqqvP4Uaripa67uKODTuaMvDknuvYAmbWpsMEh AlpGJ+ES1W8UAGj/xDfUQo/Z7OceubbRsP87coPVLY5u7V4oTG2oZftk+arAQrzTKVKH TnAGKqCjUl15ctkzsnBrAhHxIFfvuwbLzBQDHMUV1xNOOMVDo5UryaRG9q2EAmB/s3v1 9D4Q== 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=+rSXQ8Eo07bXCCOl5u5+7FINYfJQ6qDdsmJoBs/8Olw=; fh=Lcp+h4NxNjdq+b6c3RvzUVfAUpegDsY0hX6hHBeXgTI=; b=oUvKSyqtUNAg2/pEX/LJ3fJzTby4CUeKMhV3IC1HU65c3Q2QplrfzEma0mJW46vvcJ d9mJs7thXclfsI3iOSwZJyVNs3CPGUHvHROAFS9Q5SOumdnv7pCuO9d4PMzJO3R+o/MW BBKnVP6LI7RdeTt19265aHtQljIz2w1s6qbZtVz9/CqQknIwIUSTaqsFmcc3d6jeu5gH HuA63NHzYGm5tjHSleZ9REa1E5aI7zatqyt4lG1NKNXdM1Y9rrvKEpRpcmV/yiYY0Zc7 kxjK4bWsX7VZWst7Ur2ToO6TGDuY+Xg00m6MSNiE48wcW2q8z2n12jSHZRS9/UNSmq2k ZaXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=MiB+QoKM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u15-20020a170903124f00b001bb3406a5f7si8674831plh.11.2023.09.18.10.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=MiB+QoKM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8D0DF8031D11; Mon, 18 Sep 2023 05:54:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240402AbjIRMyO (ORCPT + 99 others); Mon, 18 Sep 2023 08:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240541AbjIRMxm (ORCPT ); Mon, 18 Sep 2023 08:53:42 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E691894 for ; Mon, 18 Sep 2023 05:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1695041613; x=1726577613; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AgeuhM5mFwcMMECK8wJlIRxhS3GYSuQUFHTrOyyDThM=; b=MiB+QoKMAqbyYfEqvvB0ZhzVCxBdtQezuYKl19PFnVKZb1z9pkZ1gRn/ y9pUZWeIrdTUeP93jz2fa12YiPTqw3AZOaIa9b3TB+DTctNWRqxKP0DaM Bzop6Z+gqEoY1LZ6ghx6AMOjTawtK9B7LHsd8sKRC5dCLethNkxThKle9 2iRmOdhCpfILW2URFd0BiXzpo4MO07UaR3e9NrZLgUoRnms7uyQi2vGXe eBfSr9nAYDaTCyLQ+2GTDlU8nYUPEDulryiNfzwaGd6szT5Q3fhwuQyZE /xyUqcobwnPZ2PEU7r8VMylJhKgylafjZ0P/GR+AeK9AF3AtCdacdZ9xn A==; X-CSE-ConnectionGUID: jK+nVR2nQ4WzZmMpcAzzfw== X-CSE-MsgGUID: IsmlXUQvT1iYP6FIUritTQ== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="asc'?scan'208";a="172211731" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 Sep 2023 05:53:32 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Mon, 18 Sep 2023 05:53:32 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Mon, 18 Sep 2023 05:53:30 -0700 Date: Mon, 18 Sep 2023 13:53:13 +0100 From: Conor Dooley To: Yu Chien Peter Lin CC: , , , , , , , , , Subject: Re: [PATCH v2 1/3] riscv: Improve PTDUMP to show RSW with non-zero value Message-ID: <20230918-cassette-exclusion-b2ce53745a5c@wendy> References: <20230914014027.273002-1-peterlin@andestech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KvF02Mytm4H6tWzO" Content-Disposition: inline In-Reply-To: <20230914014027.273002-1-peterlin@andestech.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 05:54:52 -0700 (PDT) --KvF02Mytm4H6tWzO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --KvF02Mytm4H6tWzO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZQhIOQAKCRB4tDGHoIJi 0tKoAP48Ts2kKoZnvEilgWMNNrGpn0bLVHjbJMaW8cCYEiYjUwEAo0VTnfi6Wo9O wMNL4/Pv5uXtN6D5qqiXcogp6SzxIg0= =xIw+ -----END PGP SIGNATURE----- --KvF02Mytm4H6tWzO--