Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2872459rwi; Fri, 28 Oct 2022 12:25:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5rbt996JMJso70J1rZD28vZuN4H1aeGAT6Qmp925BGXRtGogZSFloEMHwwsLlN6zHPvrFp X-Received: by 2002:a17:906:5d0d:b0:78d:ecd6:64c1 with SMTP id g13-20020a1709065d0d00b0078decd664c1mr758572ejt.571.1666985137326; Fri, 28 Oct 2022 12:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666985137; cv=none; d=google.com; s=arc-20160816; b=xGUg/VGqj2IJbPoRIl9+j1Xw/OmY7sNlQ3ttVqSyIK51pMZS4xnVY3abncsFX6wqhJ qLxKuH0dMGbgYkaX4+2NU34FybQsezIkTaDUrINgofFmdVVVyuNMAgp0EuPjtMHiXlsS mOhNGc6UCV8MnOdHKJC+C8qUuhvofo2NCvDho9UVOUlW9xBb6Hwbb6vkkopTcb+nnOPi xUKJ1TM1/JQ9ZdnlZSw3AsCKatzeOcTxFgBNneweqAujqQr/x+0div9FSzlfQYE08UVZ WeLV8zVeHyK8sBvprDAZQfYnGLfWwq80LBEMV0sWzL6IDcWe9p2Mo2D/7D/0xfedACS2 EdNQ== 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=eahWwALnY44tSibakeP/nqzyHfADadyTHXKNYRxLyrk=; b=C2xgjoJqs+EosCpDY66jfB06jxarUqsjVSiE78oyeuJf6aBVh1em3QQTrdJ04j7nXI JrjOvCV+NgBKBTKH9PN31TXFqbVKN68YXdg7HJUaYtM6yM44LP3S96uJzycvtwfMditm noRawniEY6yfVjsXCX54GIBoOl6V3fOgtr7sVH0a18KySOxPAznxg7LCPbV9oqpndiK9 RB/KMum/gmPrFWrNMQH7ZJ++2ktbic/msYJFo7j0IBB8YFwQmnRJVdhyOCuMuASB3K2N Vw1tBxoE/qwDWLqB4/LJPF3Kjwk5bKfqVKDGYE58BLb5r/CR8tEkokShIeGGBrPu7F43 9xOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=K2JDR5P+; 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 e9-20020a17090658c900b00783698dd8b4si6070800ejs.722.2022.10.28.12.25.11; Fri, 28 Oct 2022 12:25:37 -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=K2JDR5P+; 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 S229950AbiJ1S2h (ORCPT + 99 others); Fri, 28 Oct 2022 14:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiJ1S2f (ORCPT ); Fri, 28 Oct 2022 14:28:35 -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 BE5AE1DC4CD for ; Fri, 28 Oct 2022 11:28:32 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id bn35so9394311ljb.5 for ; Fri, 28 Oct 2022 11:28:32 -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=eahWwALnY44tSibakeP/nqzyHfADadyTHXKNYRxLyrk=; b=K2JDR5P+4RMHBpYYgdt011dLwQPK5Tf2ZEowIkNUmPfU7AX+bmAO4tUUGPXADh+xJ+ TeK4DeFAFsi+rJkZZ4QNgg58Lyc/Yan4TgH6csiE7LWQ/lvulfkbp9Mtk6RgfqA7ld1j 0UcjHBBB5P4umboVSetb3EjhbSkWiV+goPsPRq2nSANWZEg97hGVNJyD4+N6Y9KyVELf XwFKy+QzAcoqi57b0PNrlEsCDINowDA2tn5mTb6N21nzs719srpvSKcWinrStWb7dwMc /mM+XvGVUSINPt6fJwVt1EAmjSSKGDgenwCJRt1J24FXuCH7TtCBIXxdB7ht89gSlixi QumQ== 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=eahWwALnY44tSibakeP/nqzyHfADadyTHXKNYRxLyrk=; b=c0K5I3ouFtlaGYFJLikRt6WcjUtPTAi+rc0fzcWTZTFlYb6cbmPUcqSJOiI69SElFl nor88/37mOn7tBTyFQyk5zrm2J2Y7fxrZ4Yz3QjTo3xLnT1lqIxGDWx809BWBajnLn9i 17zxnaASnFctSknjgFoj3mzzZjnmta6LvF82cborFS/9s9PLIyuGG48Ljyuf0mwZNmyy O25PWHeLD9tkD1kMYfvRXELRctczzHEUka4fYMaxDJRmw/xbrdhnL4oM5OAhfWGMY5u3 q5Aw6TfrOGIIme1m4nIKJA4QgEpDhAu0KedvHQGJYvNWj+OCXDT/pN6ak/wjBz9x8OnV flwA== X-Gm-Message-State: ACrzQf20OQl2Z7F39BaXHBIogUhezBMvESAuQYQQKgvp5ZV+gOPMe+6Q RwKbHYPzlTsW58Hnh6fCuaC0LGFoXL3bPA== X-Received: by 2002:a2e:a595:0:b0:26f:e133:aa96 with SMTP id m21-20020a2ea595000000b0026fe133aa96mr308286ljp.173.1666981711029; Fri, 28 Oct 2022 11:28:31 -0700 (PDT) Received: from elroy-temp-vm ([20.240.130.248]) by smtp.gmail.com with ESMTPSA id bq25-20020a056512151900b00497b198987bsm661879lfb.26.2022.10.28.11.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 11:28:30 -0700 (PDT) Date: Fri, 28 Oct 2022 18:28:30 +0000 From: Tanjuate Brunostar To: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: [PATCH] staging: vt6655: fix lines of code ending in a '(' Message-ID: 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: X-Mailing-List: linux-kernel@vger.kernel.org fix checkpatch errors related to lines ending with a '(' by joining splitted lines of code and indenting properly to improve visibility Signed-off-by: Tanjuate Brunostar --- drivers/staging/vt6655/rxtx.c | 165 ++++++++++++++-------------------- 1 file changed, 69 insertions(+), 96 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 1e5036121665..7eb7c6eb5cf0 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -139,15 +139,11 @@ static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate) * PK_TYPE_11GB 2 * PK_TYPE_11GA 3 */ -static -unsigned int -s_uGetTxRsvTime( - struct vnt_private *pDevice, - unsigned char byPktType, - unsigned int cbFrameLength, - unsigned short wRate, - bool bNeedAck -) +static unsigned int s_uGetTxRsvTime(struct vnt_private *pDevice, + unsigned char byPktType, + unsigned int cbFrameLength, + unsigned short wRate, + bool bNeedAck) { unsigned int uDataTime, uAckTime; @@ -214,20 +210,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 -) +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) { bool bLastFrag = false; unsigned int uAckTime = 0, uNextPktTime = 0, len; @@ -316,17 +308,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, + unsigned char byDurType, + unsigned int cbFrameLength, + unsigned char byPktType, + unsigned short wRate, + bool bNeedAck, + unsigned char byFBOption) { unsigned int uCTSTime = 0, uDurTime = 0; @@ -409,22 +397,18 @@ s_uGetRTSCTSDuration( return cpu_to_le16((u16)uDurTime); } -static -__le16 -s_uFillDataHead( - struct vnt_private *pDevice, - unsigned char byPktType, - void *pTxDataHead, - unsigned int cbFrameLength, - unsigned int uDMAIdx, - bool bNeedAck, - unsigned int uFragIdx, - unsigned int cbLastFragmentSize, - unsigned int uMACfragNum, - unsigned char byFBOption, - unsigned short wCurrentRate, - bool is_pspoll -) +static __le16 s_uFillDataHead(struct vnt_private *pDevice, + unsigned char byPktType, + void *pTxDataHead, + unsigned int cbFrameLength, + unsigned int uDMAIdx, + bool bNeedAck, + unsigned int uFragIdx, + unsigned int cbLastFragmentSize, + unsigned int uMACfragNum, + unsigned char byFBOption, + unsigned short wCurrentRate, + bool is_pspoll) { struct vnt_tx_datahead_ab *buf = pTxDataHead; @@ -555,19 +539,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 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) { unsigned int uRTSFrameLen = 20; @@ -750,19 +730,15 @@ s_vFillRTSHead( } } -static -void -s_vFillCTSHead( - struct vnt_private *pDevice, - unsigned int uDMAIdx, - unsigned char byPktType, - void *pvCTS, - unsigned int cbFrameLength, - bool bNeedAck, - bool bDisCRC, - unsigned short wCurrentRate, - unsigned char byFBOption -) +static void s_vFillCTSHead(struct vnt_private *pDevice, + unsigned int uDMAIdx, + unsigned char byPktType, + void *pvCTS, + unsigned int cbFrameLength, + bool bNeedAck, + bool bDisCRC, + unsigned short wCurrentRate, + unsigned char byFBOption) { unsigned int uCTSFrameLen = 14; @@ -868,21 +844,17 @@ s_vFillCTSHead( - * unsigned int cbFrameSize, Hdr+Payload+FCS */ -static -void -s_vGenerateTxParameter( - struct vnt_private *pDevice, - unsigned char byPktType, - struct vnt_tx_fifo_head *tx_buffer_head, - void *pvRrvTime, - void *pvRTS, - void *pvCTS, - unsigned int cbFrameSize, - bool bNeedACK, - unsigned int uDMAIdx, - void *psEthHeader, - unsigned short wCurrentRate -) +static void s_vGenerateTxParameter(struct vnt_private *pDevice, + unsigned char byPktType, + struct vnt_tx_fifo_head *tx_buffer_head, + void *pvRrvTime, + void *pvRTS, + void *pvCTS, + unsigned int cbFrameSize, + bool bNeedACK, + unsigned int uDMAIdx, + void *psEthHeader, + unsigned short wCurrentRate) { u16 fifo_ctl = le16_to_cpu(tx_buffer_head->fifo_ctl); bool bDisCRC = false; @@ -954,11 +926,12 @@ s_vGenerateTxParameter( } } -static unsigned int -s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType, - unsigned char *pbyTxBufferAddr, - unsigned int uDMAIdx, struct vnt_tx_desc *pHeadTD, - unsigned int is_pspoll) +static unsigned int s_cbFillTxBufHead(struct vnt_private *pDevice, + unsigned char byPktType, + unsigned char *pbyTxBufferAddr, + unsigned int uDMAIdx, + struct vnt_tx_desc *pHeadTD, + unsigned int is_pspoll) { struct vnt_td_info *td_info = pHeadTD->td_info; struct sk_buff *skb = td_info->skb; -- 2.34.1