Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4971389rwd; Tue, 30 May 2023 12:35:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JnW4JFrvOCwQQ1nXoLCP6aaoulR+eR1h6ZsZDYhwydPyuMoH4rLBh5P+89Sdvr0+VM5Lm X-Received: by 2002:a17:90b:224b:b0:252:a2e5:4c3f with SMTP id hk11-20020a17090b224b00b00252a2e54c3fmr3556196pjb.25.1685475316137; Tue, 30 May 2023 12:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685475316; cv=none; d=google.com; s=arc-20160816; b=rJtAK+tNhRCyUzkATXu6i35YittG35o9uxb1FDWHSvLqKJDoBpiPYRQL6N+YoFnDII vFLUaeiIaTTx6dfRKhBpWot/ilW87CkF2fTVZdoqfLKpJ4E5gNc3xBNHs6kUqikDSe1x 3sO/HJM7s0ATZoEe4dN39xoES9mwKwerpHCzCTGVl/+GMlO5ki9s8qyWBr8mBzno3s+X N5GP7l54LHSKYVJ/PBBLhfbYUe6nqR9XS5P2fmgX0OSllX/byzCzVmpO+ICrHTsDcWnS C725qyEr5ifau+QyRpgMmuB0cPDY8RDr4mPhGANIXR6S5Q5FbZ/LSQyQ87oR6yCyr0e+ 1lMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wfQuZmnPQJmPq4FD0skpyrp1OyYgS6QeSjx3Y7QLJpo=; b=iH7ai176h2gPNgqxZGJUrm5h04SRfEsS25rO6n0hDmbdMBP7TUYFQyt0HHsfmtxUD3 yiXflu+ttvlHry+CW9/OTVx9k/ctC3BUqE/4X+ckX5zuvz59df/9O6qJf3Zzw77nOoWF EbRPQtVd030uro5BdOmwSahnA/fqEkiE8pPaVNjl7murpCaL1B7oYbqY3THwACJzUJm9 4lSbmRjPD2MVexlT7h/7lKR35PWmJx/UrrpPoC+6d7TSuNkY23vsObftY0twFOzMPb2H +ByGjWDOXRjxB/D2BCl481aZlOE7DL+N9gWLAg+Bk/e7kr+5E8pG2tdmasrdA9IJl8AF CiVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HmRpw8pG; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a17090ae10d00b0025667dcd6ecsi1576466pjz.120.2023.05.30.12.35.01; Tue, 30 May 2023 12:35:16 -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=@linaro.org header.s=google header.b=HmRpw8pG; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231749AbjE3TEj (ORCPT + 99 others); Tue, 30 May 2023 15:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232679AbjE3TEh (ORCPT ); Tue, 30 May 2023 15:04:37 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A910B107 for ; Tue, 30 May 2023 12:04:35 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-776fee32f12so333630239f.3 for ; Tue, 30 May 2023 12:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685473475; x=1688065475; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wfQuZmnPQJmPq4FD0skpyrp1OyYgS6QeSjx3Y7QLJpo=; b=HmRpw8pGvyPSbo1Qzvek5/4weOk51Rnlxpp6EOvPssKH3D5hQ5EDzw0EoSd7xiUZus mms608q4JqR/J3lQg/7HKynivqzzxZS7UppVP37EvxglMzvkpSsKDvOV28aW6L42SERH SJ/y7tIVas1/E/bcbtlnn5M3X+cIKQiUNEYlvmyWmANy80Sa1xHxwRdCLY7FJvWUvbPQ Z15dxzNpvzEGaRcjiV+7ndsDr30d3hH3TkjzvG0MCU3Tf4JLuSpQoc45cw4HNc+d2AIl S61L/WYbLv72GF90UiZgLuA4usY//Xlm2bnxQbOV9jCeI8ZHIDqjgpJGcMTjbW96unsN vt5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685473475; x=1688065475; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wfQuZmnPQJmPq4FD0skpyrp1OyYgS6QeSjx3Y7QLJpo=; b=h49RzfPmBPQnHmN4v9B9Zj8sIrjFqUKuST2Tyih8Da4HKjZhlSp2Mjg6OYmL2t7EMR z8g5zU5g3vWavJ4vC6C56XOwF2b82bMUE6Vgr1N2WH74D/Qz1P0TEnS+uEFRsYH8I/oA lI/qlayReUqlFcWCzHCxW7bhDeTw/a5aYaznlSQmPEqiA6MtJ27FJLC0KgjcYa2gZs4m xXvfmbbrsLVSAo038cR7RdubsNQ8JPcI7kt7IMuHLjfA4y2R+BVAjHCH1o6JGZbIEcJl Sy7/Qgzqu8UWh+WlAltlSt+hMY/q+hgv8+KyrafUk/06BF0Fgw4yXhXMSXR6VB9Mc4+e fD8Q== X-Gm-Message-State: AC+VfDx0MKv6BR2SmXZZNr+XmO2H+xxu53XirKqc3/R3eGptNPZ9EKzv iJ9a/FWVptCWKiRoP6A7Gsf4Ag== X-Received: by 2002:a92:d581:0:b0:33b:151a:e29f with SMTP id a1-20020a92d581000000b0033b151ae29fmr363228iln.11.1685473474944; Tue, 30 May 2023 12:04:34 -0700 (PDT) Received: from [172.22.22.28] ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id z96-20020a0293e9000000b004178754b24bsm920068jah.166.2023.05.30.12.04.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 May 2023 12:04:34 -0700 (PDT) Message-ID: Date: Tue, 30 May 2023 14:04:32 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net] net: ipa: Use the correct value for IPA_STATUS_SIZE Content-Language: en-US To: Bert Karwatzki , 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 References: <7ae8af63b1254ab51d45c870e7942f0e3dc15b1e.camel@web.de> <2b91165f667d3896a0aded39830905f62f725815.camel@web.de> <3c4d235d-8e49-61a2-a445-5d363962d3e7@linaro.org> <8d0e0272c80a594e7425ffcdd7714df7117edde5.camel@web.de> From: Alex Elder In-Reply-To: <8d0e0272c80a594e7425ffcdd7714df7117edde5.camel@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 5/30/23 1:36 PM, Bert Karwatzki wrote: > 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 this >>>>> as IPA_STATUS_SIZE. >> >> This is better, however it really isn't done in a way that's >> appropriate for a Linux kernel patch.  I will gladly help you >> get it right if you have the patience for that.  But I'm not >> going to say anything yet--until you say you want me to help >> you do this.  If you prefer, I can submit the patch for you. >> >> The reason this is important is your commit is permanent, and >> just like code, commit messages are best if kept consistent >> and readable.  I also am offering to help you understand so >> you avoid any trouble next time you want to send a kernel patch. >> >> Let me know what you prefer. >> >>                                         -Alex >> >>>> > > 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 This is better, but there are a few more things to do differently. - When re-submitting a patch, please indicate a (new) version in the subject line. Since you haven't been doing that, it should be sufficient to just use "version 2", something like this: [PATCH net v2] net: ipa: Use the correct value for IPA_STATUS_SIZE - Add a "Fixes" tag above your "Signed-off-by:" line: Fixes: b8dc7d0eea5a ("net: ipa: stop using sizeof(status)") - Do not send information above the patch in the e-mail. An easy way to get it right is to use "git send-email". For example: - git format-patch -1 - Edit 0001-*.patch, adding lines like this below the "From:" line: To: davem@davemloft.net To: edumazet@google.com To: kuba@kernel.org To: pabeni@redhat.com Cc: elder@kernel.org Cc: netdev@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org Cc: linux-kernel@vger.kernel.org - Run this: git send-email --dry-run 0001-*.patch to try to catch any errors - Finally, run this: git send-email 0001-*.patch to actually send the patch. This will require a password. Even if you don't use "git send-email", just let the e-mail itself indicate the "From:" and "Subject:" lines. And have the content of the e-mail be the patch itself. I hope this helps. -Alex > --- > 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 { > }; > > /* Size in bytes of an IPA packet status structure */ > -#define IPA_STATUS_SIZE sizeof(__le32[4]) > +#define IPA_STATUS_SIZE sizeof(__le32[8]) > > /* IPA status structure decoder; looks up field values for a structure */ > static u32 ipa_status_extract(struct ipa *ipa, const void *data,