Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3933685rwi; Sat, 22 Oct 2022 02:27:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5lTbzy/v+noSdNdKnxmfSHkQxCbUnNP8RJyCgkEH032gTKSa4nKmPOp3MAi3J0MJUgqbjk X-Received: by 2002:a17:903:1112:b0:178:a030:5f72 with SMTP id n18-20020a170903111200b00178a0305f72mr23491014plh.12.1666430876925; Sat, 22 Oct 2022 02:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666430876; cv=none; d=google.com; s=arc-20160816; b=n1mPRS8+o6i8SaziKuXcOpmVsCl9K67vICsZJ1ofQziZXXkEohyKRpv/SISlN7M7WX RE77WRLWMSsQL2bTMfwXLVGq/ilOB6RCNZ/DahqAQNGu2+/Skk4P6WI3HxWJqUBeJK06 D+CjR2TS4cYT40gJejJZNoMSkQIglWH5LPRCBOMNFGKAF/uhvHt8Gtnlaw5QlwT2l71J chBeOd5CH2eUvrpWO4rnX44Cxash0mzF0uyaRB/DQIMdgnBIfcbSWIQFvbrcvVbvDHeN VWEHknDo/6kPaGGmhGbPfiu3tv+0RvOH1X59urkeNNWO2BbNirXRoj2RIY4LOdvNEzJ5 UTpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xtspj2EHDHTLHsMf67bmWw34DXnuBbSQ8hdrMjnn5qQ=; b=IMr+urRhLXnJ5JFmk6yc9qWfWHA6u5rZMbt+hc6VnkoloUxuwDUE5vaBismJutpJFf P3X11WGciim7XahcCs2nB5F42Iy2NN5zlm4Sc6KnXdrYXCOsYFU8oJ6vWWNR5DillzuW p+KyM3k55AWr+AZadH5F2/GNvNncteHQICcDtEnDzLp5NNhZnndzi9Qw0GS19kVSPJ1a b63ROB4r0wRQq1qJDQQ5ap1GDHk2njjv9IpTI22IB1I4xO314xkjG1BtBQZyLETl+LQo FEMh/bofKHM/RzNOgXTytZ+j7dt1CD8jD/xljKSA+5gT/qhEL23QMCpkNFfFhlUZ6M8X yxlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nOsArMbS; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om17-20020a17090b3a9100b001fdb95c743bsi2411514pjb.83.2022.10.22.02.27.44; Sat, 22 Oct 2022 02:27:56 -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=@linuxfoundation.org header.s=korg header.b=nOsArMbS; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229974AbiJVJFf (ORCPT + 99 others); Sat, 22 Oct 2022 05:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235149AbiJVJDz (ORCPT ); Sat, 22 Oct 2022 05:03:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA3B32FBDCA for ; Sat, 22 Oct 2022 01:19:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3586DB82E1C for ; Sat, 22 Oct 2022 08:17:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76DACC433C1; Sat, 22 Oct 2022 08:17:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666426665; bh=31ACgIXwKFnBWqgJtqPn3um1i8y9zw8fx+VhoFg5ems=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nOsArMbSdh8FxBb5thkVDq/WHbNrQfeEvMZd7WDQiS/YVVnAUxMgIxLoK7G2mSYZC 9/Qc3DxfrjKeW0C1I3OcqGMNpXAbmBLH3uaTiPUvAJbJKOgiDItNo31qOwbhK7aloc nZoCCWux9OnTi41Uzt6mhEnNGbEk3yha7OzDMFWQ= Date: Sat, 22 Oct 2022 10:10:16 +0200 From: Greg KH To: Tanjuate Brunostar Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH v3 1/6] staging: vt6655: fix lines ending in a '(' Message-ID: References: <20221022070612.13009-1-tanjubrunostar0@gmail.com> <20221022070612.13009-2-tanjubrunostar0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221022070612.13009-2-tanjubrunostar0@gmail.com> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sat, Oct 22, 2022 at 07:06:07AM +0000, Tanjuate Brunostar wrote: > fix serveral checkpatch errors related to lines ending with a '(' by > refactoring the code lines > > Signed-off-by: Tanjuate Brunostar > --- > drivers/staging/vt6655/rxtx.c | 149 ++++++++++++++-------------------- > 1 file changed, 63 insertions(+), 86 deletions(-) > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > index 1e5036121665..f9d0b00d7cff 100644 > --- a/drivers/staging/vt6655/rxtx.c > +++ b/drivers/staging/vt6655/rxtx.c > @@ -141,13 +141,11 @@ static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate) > */ > static > unsigned int > -s_uGetTxRsvTime( > - struct vnt_private *pDevice, > - unsigned char byPktType, > - unsigned int cbFrameLength, > - unsigned short wRate, > - bool bNeedAck > -) > +s_uGetTxRsvTime(struct vnt_private *pDevice, You have a strange mix of choices here for how you changed the code. This time you did not move the "static" or "unsigned int" to the same line as the function name, but then: > + unsigned char byPktType, > + unsigned int cbFrameLength, > + unsigned short wRate, > + bool bNeedAck) > { > unsigned int uDataTime, uAckTime; > > @@ -215,19 +213,16 @@ static __le16 get_rtscts_time(struct vnt_private *priv, > > /* byFreqType 0: 5GHz, 1:2.4Ghz */ > static > -unsigned int > -s_uGetDataDuration( > - struct vnt_private *pDevice, > - unsigned char byDurType, > - unsigned int cbFrameLength, > - unsigned char byPktType, > - unsigned short wRate, > - bool bNeedAck, > - unsigned int uFragIdx, > - unsigned int cbLastFragmentSize, > - unsigned int uMACfragNum, > - unsigned char byFBOption > -) > +unsigned int s_uGetDataDuration(struct vnt_private *pDevice, You moved "unsigned int" here, but then: > + unsigned char byDurType, > + unsigned int cbFrameLength, > + unsigned char byPktType, > + unsigned short wRate, > + bool bNeedAck, > + unsigned int uFragIdx, > + unsigned int cbLastFragmentSize, > + unsigned int uMACfragNum, > + unsigned char byFBOption) > { > bool bLastFrag = false; > unsigned int uAckTime = 0, uNextPktTime = 0, len; > @@ -316,17 +311,13 @@ s_uGetDataDuration( > } > > /* byFreqType: 0=>5GHZ 1=>2.4GHZ */ > -static > -__le16 > -s_uGetRTSCTSDuration( > - struct vnt_private *pDevice, > - unsigned char byDurType, > - unsigned int cbFrameLength, > - unsigned char byPktType, > - unsigned short wRate, > - bool bNeedAck, > - unsigned char byFBOption > -) > +static __le16 s_uGetRTSCTSDuration(struct vnt_private *pDevice, You did both the static and the return type here. Pick one style and stick with it please. Consistancy matters, that is why we have a coding style to start with. Brains and pattern matching and all that. In this case, this last one (both static and the return type), should be used. thanks, greg k-h