Message ID | Y1BN6wPMrpxPB3qP@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:4ac7:0:0:0:0:0 with SMTP id y7csp495801wrs; Wed, 19 Oct 2022 12:22:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4P68b/3zxsgKSB3fZkWlYWH9flzX7EuzUq+mF+yx+SXY2GQf6lLwqInUrkTT2qxfUebPZu X-Received: by 2002:a17:906:58c6:b0:78d:b37f:5ce5 with SMTP id e6-20020a17090658c600b0078db37f5ce5mr8051195ejs.707.1666207379007; Wed, 19 Oct 2022 12:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666207379; cv=none; d=google.com; s=arc-20160816; b=giWbZSA+DA1EZRmWVyHebG0OQq2BKZUCXbiz1lFihS/YXbd4HugifzVWqLf2cDUXkP Y+l2TGp/V3zenJOi73Tkh3Dow7A2y9clfhZ5C3SGFx7utwZ9gO+brLw6m80U2zxhgT+7 91FnJh9DUV4FpoOyGAqcwBs2rLqf+709fvHMNtTyGsDponGwLGYKyuKmmO3doAIGD8g8 hl3mkU/jYChtuI597DIAnzsBFn1eQ/0Wi/2JKqE4dpILIeGrsE72UcKzxC/cYjhtrCzo 2hcvfpChF6g9gp2x9o6xxAnpsHplbLFf35q6QuTyH6vEf5QiNfwKL7AoAp40QIi20onS 2Nmw== 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=9hBHwT//7YVRU6p7n6Dpa0soZobMlVM8+tmM4b0TcpA=; b=wkekoMzRwbqwBFTBXzQjbTAbFWEVmXxoeJNMBzVfGLwBuUBE7dPG8PMwZmz3Oa4ucg zfeIBfWxr/kZdHjUJ7LyWeSuxcp6FkaPhbIAD1ENyMDAQugZkxuQxx9itn5ZyZqvslb7 Y1f8G1oSyuLJCGt+4RBjxely4DzadQoQLFnqcmkZzElcmCTVTSeSa/KPewfbywNjh7tK LXrVQSahkOZFdgIeQv887iE3Yz2OZbguVH+kJuv89DRDe4iYdkrt6tHibn14mNDeb4g+ 5pZY232097cACuZeMwQPCz9rX3OyM/u7GNdEVHRT+gRNfFlr9f9A7+e+ZwmM3LYQMc+H ORsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XrHgrTxg; 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 dp21-20020a170906c15500b00780e844b2eesi9970266ejc.482.2022.10.19.12.22.32; Wed, 19 Oct 2022 12:22: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=XrHgrTxg; 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 S229822AbiJSTUR (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 15:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiJSTUP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 15:20:15 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0119514139B for <linux-kernel@vger.kernel.org>; Wed, 19 Oct 2022 12:20:14 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id h8so23458615lja.11 for <linux-kernel@vger.kernel.org>; Wed, 19 Oct 2022 12:20:13 -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=9hBHwT//7YVRU6p7n6Dpa0soZobMlVM8+tmM4b0TcpA=; b=XrHgrTxgcw2OnbR2Rn2l85bm8PqJaW2asw3Rj8nSKkpWabYmNRocvMCA6WpeRWnATc sjSU8uuNefou14117FYgY2AzHTWFYi8E8uAoA50p4Y265wqBYZKKhCBlJxT7t4lgon1j d7oajZYLNqsLwHuYzX8rxu4D5a+SJZxvkVNg7aDlzavvmgQwqEq1/0v2XDV4hK5aObGS vXCSN9ow7djwmgbT0UZ23j6VUcQJCQKsbOVHDaDNQf6eNN1liJQZ5ihiBUcQ4mY3jzMS MOG33Mm8BvSeuZXkq4KarClm9YmJA8/beT+e0QZ8rT/oNqYdC4mM4yrpqDvITKsIeyV+ HYeA== 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=9hBHwT//7YVRU6p7n6Dpa0soZobMlVM8+tmM4b0TcpA=; b=rzPGr/sBAqLL0WbeDwb+OlrdmEicd2WOHsoW3JvXWRlOVG+OPpXuldHJYfMTby7fiM VMC0LH16OCK1nHmbr6tX50RLD8GDqoDAPEIFYwTdFeI2kR2CJ6B4C60vH70tro+bQcOd LlM6MplNcBHgFIQWaeJp7ptV4UvORKLoYQPpfLwqcLKJ4qJ4wDKaHlCKV2iApYh0vLt5 ToGYhIkz0R46WQHUOPfOT8wFgE+TibUtAWxRiuruc4hbWUW8X/Fp5B27HmFVHym7uS2j zhBu9w9PR91lmQcO9owzl6c+RZ7YgTeRMZqNf9y7h/h0/Nz7OLNYDd0GhaCu+sJcVHxw 4yrA== X-Gm-Message-State: ACrzQf0Y9MUkrPqB+0+SLXSG5W8+uGtxmoEAkmN0cHXNUg9yc1ocQNrg D2sdiPeqUNMLJkKTfe15ZuI= X-Received: by 2002:a2e:a887:0:b0:26a:871b:a16d with SMTP id m7-20020a2ea887000000b0026a871ba16dmr3658942ljq.482.1666207212039; Wed, 19 Oct 2022 12:20:12 -0700 (PDT) Received: from elroy-temp-vm ([20.240.130.248]) by smtp.gmail.com with ESMTPSA id bg31-20020a05651c0b9f00b0026dce212f24sm2551026ljb.98.2022.10.19.12.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 12:20:11 -0700 (PDT) Date: Wed, 19 Oct 2022 19:20:11 +0000 From: Tanjuate Brunostar <tanjubrunostar0@gmail.com> To: greg@kroah.com, forest@alittletooquiet.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: [PATCH v2] staging: vt6655: Fix Lines should not end with a '(' Message-ID: <Y1BN6wPMrpxPB3qP@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?1747145068895253880?= X-GMAIL-MSGID: =?utf-8?q?1747145068895253880?= |
Series |
[v2] staging: vt6655: Fix Lines should not end with a '('
|
|
Commit Message
Tanjuate Brunostar
Oct. 19, 2022, 7:20 p.m. UTC
Code style warnings reported by checkpatch.
Improve the layout of a function header:
Put the first parameter immediately after the '(' and align the other
parameters underneath it.
Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com>
---
v2: put static and void on the same line and adjusted the indentation as
suggested by Greg KH
drivers/staging/vt6655/rxtx.c | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
Comments
On Wed, Oct 19, 2022 at 07:20:11PM +0000, Tanjuate Brunostar wrote: > Code style warnings reported by checkpatch. > Improve the layout of a function header: > Put the first parameter immediately after the '(' and align the other > parameters underneath it. > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > > --- > v2: put static and void on the same line and adjusted the indentation as > suggested by Greg KH I think he meant putting "static" and "void" and also function name on the same line. Additionally, I think your patch introduces new checkpatch problems. Did you run checkpatch.pl on your patch? Best regards, Nam
On Wed, Oct 19, 2022 at 11:35 PM Nam Cao <namcaov@gmail.com> wrote: > > On Wed, Oct 19, 2022 at 07:20:11PM +0000, Tanjuate Brunostar wrote: > > Code style warnings reported by checkpatch. > > Improve the layout of a function header: > > Put the first parameter immediately after the '(' and align the other > > parameters underneath it. > > > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > > > > --- > > v2: put static and void on the same line and adjusted the indentation as > > suggested by Greg KH > > I think he meant putting "static" and "void" and also function name on > the same line. > Oh I will do this now. thanks > Additionally, I think your patch introduces new checkpatch problems. Did > you run checkpatch.pl on your patch? > > Best regards, > Nam > Yes I did. the checkpatch says this: Alignment should match open parenthesis #89: FILE: drivers/staging/vt6655/rxtx.c:89: +static void s_vFillRTSHead(struct vnt_private *pDevice, + unsigned char byPktType, The only way to resolve this would be to add white space which would generate another checkpatch problem. how do i fix this please?
On Thu, 20 Oct 2022, Tanju Brunostar wrote: > On Wed, Oct 19, 2022 at 11:35 PM Nam Cao <namcaov@gmail.com> wrote: > > > > On Wed, Oct 19, 2022 at 07:20:11PM +0000, Tanjuate Brunostar wrote: > > > Code style warnings reported by checkpatch. > > > Improve the layout of a function header: > > > Put the first parameter immediately after the '(' and align the other > > > parameters underneath it. > > > > > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > > > > > > --- > > > v2: put static and void on the same line and adjusted the indentation as > > > suggested by Greg KH > > > > I think he meant putting "static" and "void" and also function name on > > the same line. > > > Oh I will do this now. thanks > > > Additionally, I think your patch introduces new checkpatch problems. Did > > you run checkpatch.pl on your patch? > > > > Best regards, > > Nam > > > Yes I did. the checkpatch says this: > Alignment should match open parenthesis > #89: FILE: drivers/staging/vt6655/rxtx.c:89: > +static void s_vFillRTSHead(struct vnt_private *pDevice, > + unsigned char byPktType, > > The only way to resolve this would be to add white space which would > generate another checkpatch problem. how do i fix this please? You mean that the ( is not at a point that is a precise multiple of the tab size? You can put as many tabs as possible and then use spaces afterwards. julia
On Thu, Oct 20, 2022 at 11:18 AM Julia Lawall <julia.lawall@inria.fr> wrote: > > > > On Thu, 20 Oct 2022, Tanju Brunostar wrote: > > > On Wed, Oct 19, 2022 at 11:35 PM Nam Cao <namcaov@gmail.com> wrote: > > > > > > On Wed, Oct 19, 2022 at 07:20:11PM +0000, Tanjuate Brunostar wrote: > > > > Code style warnings reported by checkpatch. > > > > Improve the layout of a function header: > > > > Put the first parameter immediately after the '(' and align the other > > > > parameters underneath it. > > > > > > > > Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@gmail.com> > > > > > > > > --- > > > > v2: put static and void on the same line and adjusted the indentation as > > > > suggested by Greg KH > > > > > > I think he meant putting "static" and "void" and also function name on > > > the same line. > > > > > Oh I will do this now. thanks > > > > > Additionally, I think your patch introduces new checkpatch problems. Did > > > you run checkpatch.pl on your patch? > > > > > > Best regards, > > > Nam > > > > > Yes I did. the checkpatch says this: > > Alignment should match open parenthesis > > #89: FILE: drivers/staging/vt6655/rxtx.c:89: > > +static void s_vFillRTSHead(struct vnt_private *pDevice, > > + unsigned char byPktType, > > > > The only way to resolve this would be to add white space which would > > generate another checkpatch problem. how do i fix this please? > > You mean that the ( is not at a point that is a precise multiple of the > tab size? You can put as many tabs as possible and then use spaces > afterwards. > > julia It works. Thank you
diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 5bdb5176772c..d987f7dff02a 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -85,10 +85,8 @@ static const unsigned short wFB_Opt1[2][5] = { #define DATADUR_A_F1 13 /*--------------------- Static Functions --------------------------*/ -static -void -s_vFillRTSHead( - struct vnt_private *pDevice, +static void +s_vFillRTSHead(struct vnt_private *pDevice, unsigned char byPktType, void *pvRTS, unsigned int cbFrameLength, @@ -96,13 +94,10 @@ s_vFillRTSHead( bool bDisCRC, struct ieee80211_hdr *hdr, unsigned short wCurrentRate, - unsigned char byFBOption -); + unsigned char byFBOption); -static -void -s_vGenerateTxParameter( - struct vnt_private *pDevice, +static void +s_vGenerateTxParameter(struct vnt_private *pDevice, unsigned char byPktType, struct vnt_tx_fifo_head *, void *pvRrvTime, @@ -112,8 +107,7 @@ s_vGenerateTxParameter( bool bNeedACK, unsigned int uDMAIdx, void *psEthHeader, - unsigned short wCurrentRate -); + unsigned short wCurrentRate); static unsigned int s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType,