Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4931058rwd; Tue, 30 May 2023 12:01:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6U2VpAda/8UrkuiE/SNEAQtbvmD6z6IskOGpvQl17tM2N/lQymwfcVeviI6u3ujMvDsq7b X-Received: by 2002:a17:903:185:b0:1b0:256:b95e with SMTP id z5-20020a170903018500b001b00256b95emr3708139plg.45.1685473269763; Tue, 30 May 2023 12:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685473269; cv=none; d=google.com; s=arc-20160816; b=h8xbiD44ZXrNklbJQZKJtbxju5zFP2J4LCMldi5dG6ayy3Mq/dl+halqf33bBXxPST qVZyNh3kz4jGFxVDk6Mlm45YbAVUXOLwMCKFIE9m2aP8Xd+1hjqnWhTMUN/B19nLDRJw bg5BmMK+D2Bl+ge0FGbyf2mb/kE9EN0+zKnYVka8SJ+2o/kVTfEbi+UcGPd6Eoent/E3 XXbEu488XbabmLfgX8br+6AUQTTmeeieryTIPEIqlbT8RF3a9zvM4rTJ2aCllSbW/cG9 nvzidCL2XCLaeemKj8KDUGyQk23GElhWENYL6VZpICKCUSGvj2AITR8zssc9BdDy/ZbF WR+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=DRRocg0ThmI8rlCbNFsKyPFwyKzfDBXMsZJKJW81yv4=; b=R+B7ptiZ2Yy1D3fwpkJDGaTMAUyC+N0FZ5oj5Nn0YIq7LRdh7gWxKY/vu0sjRwbWwS PvH8sTEkxMpMDSkj1ZkthlUheahR5iSxErjA250QatXCHImmzaau9+KDYnvVg8fzZEAF Z0QyMyZ9Z2z1wGOhVKKwfvaKViyn9IBnxVyXfVUH4h30mO5OZbDAy9li6vDHmRQ0N1zS VZ/ArkzsYVe20GUykNDFYC6Z/52R7JlaiJjR/rUZPX4VGJ+84pDVoIZXCEfF6DDmIXWZ bThtUZuqPUvqLgnX3Bji0eoSKLsYsPZm+X5001SOxAqZ6EoM8bHBZoVYhEs52oqyXus9 1kSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=MB1a2xDJ; 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=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a170902758800b001b02ce8470dsi2398397pll.543.2023.05.30.12.00.54; Tue, 30 May 2023 12:01:09 -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=@web.de header.s=s29768273 header.b=MB1a2xDJ; 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=QUARANTINE dis=NONE) header.from=web.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232555AbjE3Sgj (ORCPT + 99 others); Tue, 30 May 2023 14:36:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbjE3Sgh (ORCPT ); Tue, 30 May 2023 14:36:37 -0400 Received: from mout.web.de (mout.web.de [212.227.15.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA3DEA7; Tue, 30 May 2023 11:36:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1685471780; i=spasswolf@web.de; bh=2v7T90+EZYWcRweNwX+3tMDTLQwY1YpThpclSmEMtDg=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=MB1a2xDJY2XJgsPR+GIX+370ThGorfknQItcFu1lKv1wc//Nsljm68ClGBJMo6EKY PYcaxk4vUvBDYXOjc8iRFw4IiiXuRc7UEqEyZVXo2L5rzi3LA3NVJeZziGSHSwAfNi zT3EB0dlu8pXg3Puq5dTnBAOXn5MYu2Xyax2Uo1gIKfFGvCMdj7d7YUIsXFYs4GsSV jLt+8RDGg7NQ672nfMhdOHaV52AYFPDcXnsQKHd4+QriLygOOiH2FezP1RXcf7Yr9d CGKOS4q1sh3DCuX1KkPr3laUaW8khZn/mAVtnxmitQ/FMlY/SqaGWVrMF9l0VXsuNr C8QuqQIreYEPw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.0.101] ([176.198.191.160]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MFayw-1prTob3wA2-00HLCg; Tue, 30 May 2023 20:36:20 +0200 Message-ID: <8d0e0272c80a594e7425ffcdd7714df7117edde5.camel@web.de> Subject: Re: [PATCH net] net: ipa: Use the correct value for IPA_STATUS_SIZE From: Bert Karwatzki To: Alex Elder , Simon Horman Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 30 May 2023 20:36:18 +0200 In-Reply-To: <3c4d235d-8e49-61a2-a445-5d363962d3e7@linaro.org> References: <7ae8af63b1254ab51d45c870e7942f0e3dc15b1e.camel@web.de> <2b91165f667d3896a0aded39830905f62f725815.camel@web.de> <3c4d235d-8e49-61a2-a445-5d363962d3e7@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.2-1 MIME-Version: 1.0 X-Provags-ID: V03:K1:nvDrN31w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WCF7N8P migieMlUX3fLat76mhqglogypSOAPtXLIR8L8TsKbegsn2W8hc7P589sUV8ohRWDhgiLSp49w x/G8ysbdJu4Cpezclv3enAhRCB5L0/iMiaD+JoyTnp5VUuaD0CIWbEkJlLB3eUEChSzXbKASq vI/NcQKUvj3kAp8vJV9D7QwrLlI= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Am Dienstag, dem 30.05.2023 um 07:29 -0500 schrieb Alex Elder: > On 5/30/23 4:10 AM, Bert Karwatzki wrote: > > Am Dienstag, dem 30.05.2023 um 09:09 +0200 schrieb Simon Horman: > > > On Sat, May 27, 2023 at 10:46:25PM +0200, Bert Karwatzki wrote: > > > > commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c introduced > > > > IPA_STATUS_SIZE as a replacement for the size of the removed struct > > > > ipa_status. sizeof(struct ipa_status) was sizeof(__le32[8]), use th= is > > > > as IPA_STATUS_SIZE. >=20 > This is better, however it really isn't done in a way that's > appropriate for a Linux kernel patch.=C2=A0 I will gladly help you > get it right if you have the patience for that.=C2=A0 But I'm not > going to say anything yet--until you say you want me to help > you do this.=C2=A0 If you prefer, I can submit the patch for you. >=20 > The reason this is important is your commit is permanent, and > just like code, commit messages are best if kept consistent > and readable.=C2=A0 I also am offering to help you understand so > you avoid any trouble next time you want to send a kernel patch. >=20 > Let me know what you prefer. >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0-Alex >=20 > > >=20 So here's v3 of the patch, done (I hope) in a way that is more standard conforming. From e0dc802b5f6f41c0a388c7281aabe077a4e3c5a2 Mon Sep 17 00:00:00 2001 From: Bert Karwatzki Date: Tue, 30 May 2023 20:23:29 +0200 Subject: [PATCH] net/ipa: Use correct value for IPA_STATUS_SIZE IPA_STATUS_SIZE was introduced in commit b8dc7d0eea5a as a replacement for the size of the removed struct ipa_status which had size sizeof(__le32[8]). Use this value as IPA_STATUS_SIZE. Signed-off-by: Bert Karwatzki --- drivers/net/ipa/ipa_endpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.= c index 2ee80ed140b7..afa1d56d9095 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -119,7 +119,7 @@ enum ipa_status_field_id { }; =20 /* Size in bytes of an IPA packet status structure */ -#define IPA_STATUS_SIZE sizeof(__le32[4]) +#define IPA_STATUS_SIZE sizeof(__le32[8]) =20 /* IPA status structure decoder; looks up field values for a structure */ static u32 ipa_status_extract(struct ipa *ipa, const void *data, --=20 2.40.1 Bert Karwatzki