Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1963754rwi; Thu, 3 Nov 2022 11:00:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5yl/FHr9gl0KXX1mxhvjPOgmk1qqIdH0hgoeclD8OB/cGXVxmr2V+WPZnBR4tBTiDkCUjC X-Received: by 2002:a17:90b:2243:b0:213:f5ec:38ed with SMTP id hk3-20020a17090b224300b00213f5ec38edmr20425791pjb.238.1667498458197; Thu, 03 Nov 2022 11:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667498458; cv=none; d=google.com; s=arc-20160816; b=nAiQL1ObSzPY+NVUdWF1QVNCMdr2QbpIpvyNrCggxzsQyJliNt9neXwrcTNqZJqxBZ QJD+OEtZptuhZcXuvF5C9HFFGVVREFqadwr2cOjrTyEMNLcQ+7q7syTddvgnE3Ov+l6r ZOficrY5C3sdrGAmJTDrfq1WKRUQszAD7X7hpzorXb5Wh8awc33V8068p9vu45QmQldh ae61JZTn1yNYaTI7DqI2G3+V795xrHjIpTrROdvjpUnI0aUhpaxAmLW7N7L8h7N4HVKM 7BNIiCMfaX4VA1r6DIGEo0dQa6tRvR3n2INZK9m1Qlksroo53HS/oD+6oG8WSbzp2zjn gdGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZDKGNUL62Hmp7TO+80EI0t8/5fmkoGs0W5GjhbEg7Ak=; b=QzFe1+sz/euax4wf3UUSwpZK9DFJcWx5Jkc0PIn4eCNBroOfyazuwBWX+ACEgrh/tg O8f2H4+gsBjWoRZ7VGNy4vqpD/5MWsAszxddPrgooaoAnF2+3rbqIczKB8B1bu/HjXB5 di0piKttfCUk8GQiV5tkYrP9eLoUj40tvxVC3V2zNlnsZh/N/4UkrQcbz3IjwE+6S/v8 irH7tl5d1/CCDhKaM0w8bovPijOTziBXa5PvmeyBkgeFuHKnCf9QeOlTJ0rsLOVAG6ef FUlxSg/+QLafUjgdrfkovrH4OALX8DFLtVihJOhRQEwb5lWuYNcy6YsTqbNB4B8yU5si oTyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="R+/jni/t"; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a170902e54400b00186ffe624e8si1714952plf.436.2022.11.03.11.00.42; Thu, 03 Nov 2022 11:00:58 -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=@gmail.com header.s=20210112 header.b="R+/jni/t"; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbiKCRir (ORCPT + 98 others); Thu, 3 Nov 2022 13:38:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230333AbiKCRip (ORCPT ); Thu, 3 Nov 2022 13:38:45 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FB3D260E for ; Thu, 3 Nov 2022 10:38:44 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id a27so1676042qtw.10 for ; Thu, 03 Nov 2022 10:38:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZDKGNUL62Hmp7TO+80EI0t8/5fmkoGs0W5GjhbEg7Ak=; b=R+/jni/tECFejnbeSf8ovTZ/MmCDfZB+T8D3a1hCW/IkQSpJkpkn1ei4qBFRh37Iad bRazMNBta9jmU4DF1NKLyZbXhYFmI3n+4SxPXQykRk8divLF3ZvPhfFl+nfO3r9Mw0Hs RP4TPF13nFKLdnCL8tO8uxywSd5Du7ngg4UvcLG/bI9ku/234zmdhntB9VO3sBx79KG7 ZdhiPuUAwDsnk8rBQ82vgVOWeq9rOPKHSoXuwPtJ1w81OF2D4jNt6r+JqS5W9s4ARc2f SpmeHn8CEkCeyjnl1WUEAkhkX7egqM79y3r0dpT9FLsf0EXV2Nx7xGwHeabdcustk+FP tx9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZDKGNUL62Hmp7TO+80EI0t8/5fmkoGs0W5GjhbEg7Ak=; b=tK7TFPWufu0QWM3l5OY+/bzHOciJhQbgHQiLAIZcCf26a2wBUZWJr5GUmkSSNhJmdl ioVsIoIZB/+SJoj47mb570t1E3GPWcqSUJrRuR6FLO23kKFBHWT7neDyhnc/5dYduRJZ KEMM9oI8+1IPH9dm/Lvi6DURGwcanAlGYK18YDqclRFVDEIht0z8jJe+3e+Zs7O4batm o/gQu6AUtNB/GL21c3UT2ggsY2+4vmTOYuYFHw0oUAX6gsijadZoHApyhJa5daGFmnkM zB/LtVgtP7kX0QiNFVkyRQTHNz7OsLZmLjvBgjIcswc85yW5HDKrA0kEiCPTKZonr6lW 1daw== X-Gm-Message-State: ACrzQf0QxD9yve0XIS712YjAz9mnVT9MMR6H7bmu3FkgJU2OIHNFNqkI wNdiodasPEtUSwB+9Q5RopvooA7DQnZWfWOcHGC7cNsCqxkOjgAs X-Received: by 2002:a05:622a:147:b0:39c:dc0d:7d0f with SMTP id v7-20020a05622a014700b0039cdc0d7d0fmr24886331qtw.281.1667497123725; Thu, 03 Nov 2022 10:38:43 -0700 (PDT) MIME-Version: 1.0 References: <612f7cf-43db-a684-7a98-8469275b43fd@inria.fr> In-Reply-To: From: Tanju Brunostar Date: Thu, 3 Nov 2022 18:38:31 +0100 Message-ID: Subject: Re: [PATCH] staging: vt6655: change the function name s_vFillRTSHead To: Julia Lawall Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 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 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 On Thu, Nov 3, 2022 at 5:04 PM Tanju Brunostar wrote: > > On Thu, Nov 3, 2022 at 4:58 PM Julia Lawall wrote: > > > > > > > > On Thu, 3 Nov 2022, Tanju Brunostar wrote: > > > > > On Thu, Nov 3, 2022 at 1:38 PM Julia Lawall wrote: > > > > > > > > > > > > > > > > On Thu, 3 Nov 2022, Tanjuate Brunostar wrote: > > > > > > > > > Remove the use of Hungarian notation, which is not used in the Linux > > > > > kernel. Reported by checkpatch > > > > > > > > > > Fix checkpatch error related to code line ends with a '(', by joining > > > > > some lines and indenting correctly. This improves visibility > > > > > > > > I don't think it will be appreciated to do two things at once. > > > > > > > > > > I sent it earlier as two patches but it seemed to break and fix the > > > kernel which was not appreciated by one of the mentors > > > > OK, then it is a presentation problem. You have presented the changes as > > unrelated. Rewrite the message to make clear what is being done. > > > > julia > > Hi Julia, I am having a hard time figuring out exactly how to write this, since I made both changes in one patch and there is no way to send them in separate patches. should I just report just one change and leave the other? I would appreciate your help here Thanks tanju > okay > > > > > > > > > > > > > Signed-off-by: Tanjuate Brunostar > > > > > --- > > > > > drivers/staging/vt6655/rxtx.c | 48 ++++++++++++++++------------------- > > > > > 1 file changed, 22 insertions(+), 26 deletions(-) > > > > > > > > > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > > > > > index 31ae99b3cb35..debc5d5daede 100644 > > > > > --- a/drivers/staging/vt6655/rxtx.c > > > > > +++ b/drivers/staging/vt6655/rxtx.c > > > > > @@ -23,7 +23,7 @@ > > > > > * s_uGetTxRsvTime- get frame reserved time > > > > > * s_vFillCTSHead- fulfill CTS ctl header > > > > > * s_vFillFragParameter- Set fragment ctl parameter. > > > > > - * s_vFillRTSHead- fulfill RTS ctl header > > > > > + * fill_rts_header- fulfill RTS ctl header > > > > > * s_vFillTxKey- fulfill tx encrypt key > > > > > * s_vSWencryption- Software encrypt header > > > > > * vDMA0_tx_80211- tx 802.11 frame via dma0 > > > > > @@ -85,15 +85,15 @@ static const unsigned short fb_opt1[2][5] = { > > > > > #define DATADUR_A_F1 13 > > > > > > > > > > /*--------------------- Static Functions --------------------------*/ > > > > > -static void s_vFillRTSHead(struct vnt_private *pDevice, > > > > > - unsigned char byPktType, > > > > > - void *pvRTS, > > > > > - unsigned int cbFrameLength, > > > > > - bool bNeedAck, > > > > > - bool bDisCRC, > > > > > - struct ieee80211_hdr *hdr, > > > > > - unsigned short wCurrentRate, > > > > > - unsigned char byFBOption); > > > > > +static void fill_rts_header(struct vnt_private *pDevice, > > > > > + unsigned char byPktType, > > > > > + void *pvRTS, > > > > > + unsigned int cbFrameLength, > > > > > > > > Strange spacing in the above parameter declaration. Maybe there is a tab > > > > that should be a space? > > > > > > > > julia > > > > > > > > > > I was also shocked when I noticed that. It seemed like a tab but when > > > I removed the space, the two words were joined and when I added the > > > space, it became this lage space once again. checkpatch does not > > > complain about it though > > > > > > > > + bool bNeedAck, > > > > > + bool bDisCRC, > > > > > + struct ieee80211_hdr *hdr, > > > > > + unsigned short wCurrentRate, > > > > > + unsigned char byFBOption); > > > > > > > > > > static void s_vGenerateTxParameter(struct vnt_private *pDevice, > > > > > unsigned char byPktType, > > > > > @@ -555,19 +555,15 @@ s_uFillDataHead( > > > > > return buf->duration; > > > > > } > > > > > > > > > > -static > > > > > -void > > > > > -s_vFillRTSHead( > > > > > - struct vnt_private *pDevice, > > > > > - unsigned char byPktType, > > > > > - void *pvRTS, > > > > > - unsigned int cbFrameLength, > > > > > - bool bNeedAck, > > > > > - bool bDisCRC, > > > > > - struct ieee80211_hdr *hdr, > > > > > - unsigned short wCurrentRate, > > > > > - unsigned char byFBOption > > > > > -) > > > > > +static void fill_rts_header(struct vnt_private *pDevice, > > > > > + unsigned char byPktType, > > > > > + void *pvRTS, > > > > > + unsigned int cbFrameLength, > > > > > + bool bNeedAck, > > > > > + bool bDisCRC, > > > > > + struct ieee80211_hdr *hdr, > > > > > + unsigned short wCurrentRate, > > > > > + unsigned char byFBOption) > > > > > { > > > > > unsigned int uRTSFrameLen = 20; > > > > > > > > > > @@ -912,7 +908,7 @@ s_vGenerateTxParameter( > > > > > buf->rrv_time_a = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); > > > > > buf->rrv_time_b = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, pDevice->byTopCCKBasicRate, bNeedACK); > > > > > > > > > > - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > > > > > + fill_rts_header(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > > > > > } else {/* RTS_needless, PCF mode */ > > > > > struct vnt_rrv_time_cts *buf = pvRrvTime; > > > > > > > > > > @@ -931,7 +927,7 @@ s_vGenerateTxParameter( > > > > > buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, byPktType, cbFrameSize, wCurrentRate, bNeedACK); > > > > > > > > > > /* Fill RTS */ > > > > > - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > > > > > + fill_rts_header(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > > > > > } else if (!pvRTS) {/* RTS_needless, non PCF mode */ > > > > > struct vnt_rrv_time_ab *buf = pvRrvTime; > > > > > > > > > > @@ -945,7 +941,7 @@ s_vGenerateTxParameter( > > > > > buf->rrv_time = vnt_rxtx_rsvtime_le16(pDevice, PK_TYPE_11B, cbFrameSize, wCurrentRate, bNeedACK); > > > > > > > > > > /* Fill RTS */ > > > > > - s_vFillRTSHead(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > > > > > + fill_rts_header(pDevice, byPktType, pvRTS, cbFrameSize, bNeedACK, bDisCRC, psEthHeader, wCurrentRate, byFBOption); > > > > > } else { /* RTS_needless, non PCF mode */ > > > > > struct vnt_rrv_time_ab *buf = pvRrvTime; > > > > > > > > > > -- > > > > > 2.34.1 > > > > > > > > > > > > > > > > > > > >