Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4059904rwe; Mon, 17 Apr 2023 07:26:25 -0700 (PDT) X-Google-Smtp-Source: AKy350ZV9LVz6PSnbI5xu4F5Fo0OuaTHXch060XwUXj/xbVu6fwkk+VHjqLbAYCvrv66sHFqv8mg X-Received: by 2002:a17:902:f544:b0:1a0:6bd4:ea9a with SMTP id h4-20020a170902f54400b001a06bd4ea9amr14574514plf.16.1681741585126; Mon, 17 Apr 2023 07:26:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681741585; cv=pass; d=google.com; s=arc-20160816; b=LKu/gy4D7NH70++zQt272GP7AqHnyIkYuYpL4bTlr7qVG8WPXKCNnMcduAr97znei1 TipwkuZdqGjEWXcDxnJ25CsPR4i44wkXGaPy8E7LjttqDaLIN4ZdSnUD/Ut22EqvYFPN w2SA2YHhL+LtUcjaOXbfMZbHCqNFQe8uTp36z+/VRR6ySAa4+fdTJJfuE9kI1RQyKARg SRVkLP3eNtkncFiaFQVWHajz4oxu/uTsHcJq3ablflgIbjM694iGeV/9PrzPYrZM8MYz HzLA6LksVyo96GfDbngd6in+Y6n1wuFY3VN0SAwbil9oSEgQpHIMNhq6DhVi80bDG01Q sqog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=hcxTT6UF9js318S99sa+KWysi/C4jiZaemKNiEHU6Gc=; b=zHE2irfxITLnx78I39Q2O6sEPAqgjh4uJfFTo25dW26ny6wCYXTfkYmjcx4Mp6sLDt gvu2xfW2NLL85p5CFeCBoATwxlCXnCRVX5/scDhRwaemnjg3zuhoeso6M1izB6gEhtST CVmDgdwA94v7xmNF/zJZxv8ydShpBN5LdK30gVP5im7iSwXgLPjH7brermWCB/u7Ezrg KEChmRaUptP3zW4J0gitx//7/uEbexqkkm/J4vHfEf0+u8b4toumjo9tIMIkc3SyzhpH TTEhUNn9CpEIWSynjhQ+/NUQiNFhB9HBZq/y+zII3FqM3NsNAqtohnWms4bxBr3LaQeV /uIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hotmail.com header.s=selector1 header.b=jV84X0Ft; arc=pass (i=1); 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=hotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020a170902c95100b001a6a636eb6dsi8646669pla.215.2023.04.17.07.26.11; Mon, 17 Apr 2023 07:26:25 -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=@hotmail.com header.s=selector1 header.b=jV84X0Ft; arc=pass (i=1); 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=hotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbjDQOWs (ORCPT + 99 others); Mon, 17 Apr 2023 10:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjDQOWp (ORCPT ); Mon, 17 Apr 2023 10:22:45 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03olkn2101.outbound.protection.outlook.com [40.92.58.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28451E45 for ; Mon, 17 Apr 2023 07:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J5rIVsESXRUZ6+hBbC8nye7YrFqf1C4oj6ZylTrF5awtQquW8ByrPwLYaMJgAQXQOUb2Jdvl7MJr4pUI2jooFxrJ3DawNf/271CE8z78luWg3U0v4g4hGe8A2AKz6yVuHnM+nt0R1m22jSJoqPlA3BBkJYKOlQnpLEbODcup20Rlwj1nIrOKGAkhKJywh9+VbSrHjOJMDRvy3N3rGRBzUPYxnbuBlGxPJQFO7BJse2EANUfKuNvBev5Qx3QZ0J+dep5X8lYOGV88tEEG2kegpeVMJyg93rdBWEeGBwgM0OV+p7GxGs3Zh9yuyCCRF/gAwsf53SZbj8NoEKLTQzGSGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hcxTT6UF9js318S99sa+KWysi/C4jiZaemKNiEHU6Gc=; b=dbFgk5vZfj0M53L/wkhsq0PPad/edDu41XQjB5hPx9MZUP07GJ8qSixKCkYo/HsoyYaeYSRwXGGl0Au+PEWJvS08T8gl6fgJcLyVrPdSr8qcUuacfWtV2iOohY8tw5tME7HH8sgG4Tz/CCMQboQ2C5kklTr9zlmYGdsZoDqEDlEzB0f2K4hV58zwlF5ChdZfDb/rYyoXvcezOA09Bk7hY40qKFQSMJlMUOgT0IMiEd3LIk8QqAOwlcuisyHzgyrX5IESn4Tq8JnUNxsAnPUBNjA9IZBtcsruGOJkcjSB8Tkm2blDpEQINyD2iHX3OOX4nO4lGRAG1tH2bRvUx2B1uQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hcxTT6UF9js318S99sa+KWysi/C4jiZaemKNiEHU6Gc=; b=jV84X0FtpTQgYNJX4J5C7T952WAiKVoUVXdYNFiv+ssZtKC8BmOdqciD+zjYRIz6Nick+RnX/du7mjdKzJUPxO8MEsftruvjCZ9h958hpvTQn6iO8pYs3otJfWxhAZLMUTlCXPrOySye3aH12htp0kmVkGkGkcABfwRHGkowQHxww+99k1oqhevY4dM7jQTPIjZtCGp1QKuzkF1B0oGCKbKMgtOPtCZx+sFX/5UsUbXgi34O4aMaHMKDQgYJqvatn4l1sc4s840wMP4++VR5m0FUnyPR0BjpVLH7qpByHPOIJps3NdnWHdwA2xOnn43BFnPV6bwoAAjNz7e/eHB4cw== Received: from DB6P189MB0568.EURP189.PROD.OUTLOOK.COM (2603:10a6:6:31::16) by PAVP189MB2410.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:30c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Mon, 17 Apr 2023 14:22:36 +0000 Received: from DB6P189MB0568.EURP189.PROD.OUTLOOK.COM ([fe80::5849:317a:3d56:7846]) by DB6P189MB0568.EURP189.PROD.OUTLOOK.COM ([fe80::5849:317a:3d56:7846%6]) with mapi id 15.20.6298.030; Mon, 17 Apr 2023 14:22:36 +0000 From: David Binderman To: Peng Zhang CC: "Liam.Howlett@oracle.com" , "linux-mm@kvack.org" , Linux Kernel Mailing List , "maple-tree@lists.infradead.org" Subject: Re: linux-6.3-rc6/lib/maple_tree.c: Two style issues Thread-Topic: linux-6.3-rc6/lib/maple_tree.c: Two style issues Thread-Index: AQHZa3oGkjmGjA5gLkua9Txw7MMTQa8kNJAAgAAIsiQ= Date: Mon, 17 Apr 2023 14:22:36 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [F6uosOT4urZ2bMpbyNb9rC6oLKTKk5XM] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DB6P189MB0568:EE_|PAVP189MB2410:EE_ x-ms-office365-filtering-correlation-id: 47e2f971-a146-4862-6135-08db3f4f3175 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Z/JCHBSEWQxa1wVvDIhwUbzK7Uw7p39Dl7GettxbEXTNfiCW8S772GInowPqA6+dSrTaFL36J6Q3H3KjQxN9BtOKR7ykttunm2Fpq0jcOiOdN06r2DM+0HU+rjKEqxWzGglb6NPW4W3spFrwwY35yBnCcmB87y6yEq5ZjxRJOrw5HHr9R0oa2IdxfOy6P+zCoXbfWRK7FHt6vRijmv/pIt9v3rffdpxckeaRsBUeTd0+gCP9wwBSTs3za4MSSh+jTqhe6tEN/1tU8sfztZvyi9QHhAlJcs1aqAzp4UIAJ5coB2heLvScoJcN9FZurTNb/C9UbD+HRyRT/vYqfRfIof2Jfv13F/I1dLDZcXq8SkY2jnU9Hj+I7tRB83J1TkdZolnrVDYlPcQZGappzMuwfxAIhXnQxLPoBRRGMX5d42uLGkNWpLOE4J6VovEtfcBN8rYNAQRocAfSxyVrprJsDqWvUXZkr5GhU5jf+3TP7LRqtJ8NY2C7sF4F6VB/rRN8gcjRnFAdWqZ8VoZO3i5Y1/5zyOZ2m8VR+ThMemwUllDdONqxHA1FO0RcUj2d2HCLhCDzahF4zNbU8KkqL0dPi1HiqhJQAhLi+uoQWrsn+xr4FCjjuH5i2YXaESuudYyg x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?uKNZibjFH0FyoK9qDWPJoTZ1W5M1qmwmE7JaBEZgPgzC1Bgy3VS78z8v0U?= =?iso-8859-1?Q?obcqWXsSPmmg8C7IgmutX2baWGSsHBID61bk7zPwQAkt3F28kewwZmIY3V?= =?iso-8859-1?Q?2m00l6ylWz9k42QecGs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d53SyH?= =?iso-8859-1?Q?D/GEmdN8WMsB6zbGaEUugDNOgTZBqdRAiL0aZTEg7FsDVtSgvxbBBfv/3i?= =?iso-8859-1?Q?e9oVfbrFCrFuTwjmFmHNhzYtTAf60ON3pKQFmP1cT4II+IJSz8aD3Xm5tj?= =?iso-8859-1?Q?PWzY34fjxLsJX5G7r1XGHFV6xc9U/lmuI/PvapYKvLI6gQKXg8pL6rHOHl?= =?iso-8859-1?Q?0aUDplpqIgLz+SnQ6lAzqKf3Hm+nzE0JXc0aOWVSImEUpWmwkspJQYiz?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4734-24-msonline-outlook-c54b5.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB6P189MB0568.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 47e2f971-a146-4862-6135-08db3f4f3175 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2023 14:22:36.7353 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVP189MB2410 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Hello there,=0A= =0A= >It should be fine here. =0A= =0A= Perhaps I have been slightly less than clear. The discussion is about the *= style*=0A= of the code, *not* whether it works or not. My apologies for the lack of cl= arity. =0A= =0A= Expression is=0A= =0A= while (A &&=0A= B && C)=0A= =0A= The static analyser notices it is poor style to have B do a limit check, bu= t have A use it.=0A= Sure its working code, but suggest new code=0A= =0A= while (B && A && C)=0A= =0A= It won't make much difference to the code, it will merely be better style.= =0A= =0A= 2.=0A= =0A= >> Source code is=0A= >>=0A= >>=A0 =A0 =A0 =A0 =A0 =A0 =A0memset(pivs + tmp, 0,=0A= >>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sizeof(unsigned long *) * (max= _p - tmp));=0A= =0A= >It's not good here, I can fix it.=0A= =0A= sizeof( pivs[ 0]) is a better thing to say than sizeof( unsigned long). =0A= There is reduced future maintenance burden, when the type of *pivs changes.= =0A= =0A= Regards=0A= =0A= David Binderman=0A=