Message ID | Y2DXsnrQjQeP2PfO@elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2818011wru; Tue, 1 Nov 2022 01:28:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4bF1ncjT3UlvKeyqYpNLqau/PJC0mApFdksChIa7w3SVDoVY/oczgit2xQFkdneCAaKLYp X-Received: by 2002:a17:902:b089:b0:178:54cf:d692 with SMTP id p9-20020a170902b08900b0017854cfd692mr18357608plr.1.1667291303312; Tue, 01 Nov 2022 01:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667291303; cv=none; d=google.com; s=arc-20160816; b=f0CxK0QfMQPSXeULe4nF7d5P1qR7stQ/CEQ709r7JaBy/A/t3DkBhprWpkhIiFdKBr yHOabCZ4TzdMy9rfDTlZIXQzokczUAT9tcRlNZzd9UsRBROha6jJT4l3Camli1lVmIUg aBj6obUPwOnITGcexgcU0gWDOoGLyQzodLhq/yct5TalCUw4y8Gxe+jn27NXS9MlM8UY NrR+6ftxPVEah/VTLuccxoU0OSfrIyVeq4YbJ4ZmHHJqRLlhG6icI5EzHdiVeCk+txe0 Y+xe89gAPT3LDtiLETqCiSzwIk22DJ/QFoZzFEP35sj2NBSDAYunxF0VjeaWGG5DLesK 0ERw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=upOGKHHQ7dIQHp3Kn+biBaH/EQv9dJ5DonoGy784LMc=; b=WoE5+HRU+UALshn0ZqgivvE3838nEkqo01Lp3eArJo/3WtYr2L0liYyxVcplWnZTep dlnQsli2HDklGNsVKU4SsX8ODQ1VOL5vqLdZ4fLvDSzZ+SUfJVQ+CAmO6E6cDfjxaU7I Iq5/NM4zZRC5o+1RdnNXLdtjW0cvlp5x8gUV+000qq4GB3mmhcnNlxYS1WvXDRRnThTu WU+zdBGkbPyXZY7QwlFkRLBfGO81hNGYKWqgQBVtP6+buPy/ByzBFUUt0U7hCqEKWnY4 YzzPpYZ8y4QSIWi93vQuz0LmQis/CI7xuz71ByzDz+/D2McemoInhT8zWpzEkTFKnRcg qzLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FJIHR75D; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q39-20020a17090a1b2a00b00205cc2ec8a6si11167935pjq.136.2022.11.01.01.28.10; Tue, 01 Nov 2022 01:28:23 -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=FJIHR75D; 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 S229950AbiKAIYX (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 1 Nov 2022 04:24:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiKAIYW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Nov 2022 04:24:22 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37E8213EB2 for <linux-kernel@vger.kernel.org>; Tue, 1 Nov 2022 01:24:21 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id c25so6280720ljr.8 for <linux-kernel@vger.kernel.org>; Tue, 01 Nov 2022 01:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=upOGKHHQ7dIQHp3Kn+biBaH/EQv9dJ5DonoGy784LMc=; b=FJIHR75D7fjRmjC2G/ZU4xqmLXvxy/Wxbrm9UdBE/elbHHWLKbAuiq9GrCoE1LgNK4 beQp4nOlkNByRrIzQ5bbW/XR1PnyTth8p2KzAme00XV974/Hm1JGPdy4z73doCjSwbzb fyHd9poulfzuOq4KglGUAs9DkV0FLERmA+l61b56o41MUdL/656b1XohmM/xbo7bCfH5 M6djE3o/bZ+bq+MXZOf2t58q+YAx8HdJIoQPDhfKnYLEG9YzZxFbZQwENKBseVWeiMPZ y38QYI6YTnXL8ZoisVer4rX0xw77PfGQhvZ7gpIKYbTBQeD5oroRVeiMafBUCLFJaRHW zpuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=upOGKHHQ7dIQHp3Kn+biBaH/EQv9dJ5DonoGy784LMc=; b=c+V7JoGBZXmG4zpVZJ0H3EWjId7YUyDWvnmYmDpMR4UxdZv0w1r6tyPUvDYkhLtRMt 1CcbJ2no7SxSQ7PoB4MOIUzm063iZ+GYssYtlI926+ZUeVeieWZqRscMVU+mbMGMwuJv oeVUAWvw1njJUd3bWLC1u4NK5jeFvn89NOnBYf22TS1f153wnpSMoZDTAeYNCeTOWNAo 3x0OEGU/hOgMT1LpZKqqGUOcoFcJnxr0sMQDOObw95Nws7XMPkGogbAOLS21iuu+EVma nVceGQ9QcIbWve81OMVbzC+18cgePgPjdjbYEVT8Yu+12sib7Mdu8FBGjicrdZQDb2R1 /Rhw== X-Gm-Message-State: ACrzQf1zhEhVAXmlVRVGPAP9J/FPYco9xWtc5FSPYVv2/o7QC8DBvXti G3F1R+Mmr5j1uPiSWD9QVkbHJTyXhb6/xg== X-Received: by 2002:a2e:84ca:0:b0:25d:77e0:2566 with SMTP id q10-20020a2e84ca000000b0025d77e02566mr7235820ljh.78.1667291059343; Tue, 01 Nov 2022 01:24:19 -0700 (PDT) Received: from elroy-temp-vm ([20.240.130.248]) by smtp.gmail.com with ESMTPSA id v11-20020ac258eb000000b004acd6e441cesm1582063lfo.205.2022.11.01.01.24.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 01:24:18 -0700 (PDT) Date: Tue, 1 Nov 2022 08:24:18 +0000 From: Tanjuate Brunostar <tanjubrunostar0@gmail.com> To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: [PATCH v2] staging: vt6655: change variable name wTimeStampOff Message-ID: <Y2DXsnrQjQeP2PfO@elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748281645743953149?= X-GMAIL-MSGID: =?utf-8?q?1748281645743953149?= |
Series |
[v2] staging: vt6655: change variable name wTimeStampOff
|
|
Commit Message
Tanjuate Brunostar
Nov. 1, 2022, 8:24 a.m. UTC
Change the variable name wTimeStampOff to adhear to Linux kernel coding
style, which does not allow naming variables in CamelCase. error is
reported by checkpatch
Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com>
---
drivers/staging/vt6655/rxtx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Tue, 1 Nov 2022, Tanjuate Brunostar wrote: > Change the variable name wTimeStampOff to adhear to Linux kernel coding > style, which does not allow naming variables in CamelCase. error is > reported by checkpatch adhear -> adhere error -> Error Actually, the variable is written in Hungarian notation, given the little w at the beginning of its name. Maybe "Remove the use of Hungarian notation, which is not used in the Linux kernel." julia > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > --- > drivers/staging/vt6655/rxtx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > index 1e5036121665..9bdcf2337235 100644 > --- a/drivers/staging/vt6655/rxtx.c > +++ b/drivers/staging/vt6655/rxtx.c > @@ -54,7 +54,7 @@ > */ > #define CRITICAL_PACKET_LEN 256 > > -static const unsigned short wTimeStampOff[2][MAX_RATE] = { > +static const unsigned short time_stamp_off[2][MAX_RATE] = { > {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */ > {384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23}, /* Short Preamble */ > }; > @@ -130,7 +130,7 @@ static __le16 s_uFillDataHead(struct vnt_private *pDevice, > > static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate) > { > - return cpu_to_le16(wTimeStampOff[priv->preamble_type % 2] > + return cpu_to_le16(time_stamp_off[priv->preamble_type % 2] > [rate % MAX_RATE]); > } > > -- > 2.34.1 > > >
On Tue, Nov 1, 2022 at 9:43 AM Julia Lawall <julia.lawall@inria.fr> wrote: > > > > On Tue, 1 Nov 2022, Tanjuate Brunostar wrote: > > > Change the variable name wTimeStampOff to adhear to Linux kernel coding > > style, which does not allow naming variables in CamelCase. error is > > reported by checkpatch > > adhear -> adhere > > error -> Error > > Actually, the variable is written in Hungarian notation, given the little > w at the beginning of its name. > > Maybe > > "Remove the use of Hungarian notation, which is not used in the Linux > kernel." > > julia > Thanks > > > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > > --- > > drivers/staging/vt6655/rxtx.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > > index 1e5036121665..9bdcf2337235 100644 > > --- a/drivers/staging/vt6655/rxtx.c > > +++ b/drivers/staging/vt6655/rxtx.c > > @@ -54,7 +54,7 @@ > > */ > > #define CRITICAL_PACKET_LEN 256 > > > > -static const unsigned short wTimeStampOff[2][MAX_RATE] = { > > +static const unsigned short time_stamp_off[2][MAX_RATE] = { > > {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */ > > {384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23}, /* Short Preamble */ > > }; > > @@ -130,7 +130,7 @@ static __le16 s_uFillDataHead(struct vnt_private *pDevice, > > > > static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate) > > { > > - return cpu_to_le16(wTimeStampOff[priv->preamble_type % 2] > > + return cpu_to_le16(time_stamp_off[priv->preamble_type % 2] > > [rate % MAX_RATE]); > > } > > > > -- > > 2.34.1 > > > > > >
On Tue, Nov 01, 2022 at 08:24:18AM +0000, Tanjuate Brunostar wrote: > Change the variable name wTimeStampOff to adhear to Linux kernel coding > style, which does not allow naming variables in CamelCase. error is > reported by checkpatch > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > --- > drivers/staging/vt6655/rxtx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > index 1e5036121665..9bdcf2337235 100644 > --- a/drivers/staging/vt6655/rxtx.c > +++ b/drivers/staging/vt6655/rxtx.c > @@ -54,7 +54,7 @@ > */ > #define CRITICAL_PACKET_LEN 256 > > -static const unsigned short wTimeStampOff[2][MAX_RATE] = { > +static const unsigned short time_stamp_off[2][MAX_RATE] = { > {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */ > {384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23}, /* Short Preamble */ > }; > @@ -130,7 +130,7 @@ static __le16 s_uFillDataHead(struct vnt_private *pDevice, > > static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate) > { > - return cpu_to_le16(wTimeStampOff[priv->preamble_type % 2] > + return cpu_to_le16(time_stamp_off[priv->preamble_type % 2] > [rate % MAX_RATE]); > } > > -- > 2.34.1 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 1e5036121665..9bdcf2337235 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -54,7 +54,7 @@ */ #define CRITICAL_PACKET_LEN 256 -static const unsigned short wTimeStampOff[2][MAX_RATE] = { +static const unsigned short time_stamp_off[2][MAX_RATE] = { {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */ {384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23}, /* Short Preamble */ }; @@ -130,7 +130,7 @@ static __le16 s_uFillDataHead(struct vnt_private *pDevice, static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate) { - return cpu_to_le16(wTimeStampOff[priv->preamble_type % 2] + return cpu_to_le16(time_stamp_off[priv->preamble_type % 2] [rate % MAX_RATE]); }