Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1397762rwi; Thu, 20 Oct 2022 11:57:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7b5P0+EuqcQ7oLvUM/NmwbU/uX4hyG9MNJfvdNCJr/iq2sk5GyBQwB3QnsSU5qTcVbers/ X-Received: by 2002:a05:6402:27c7:b0:45d:45f0:e6c4 with SMTP id c7-20020a05640227c700b0045d45f0e6c4mr13370924ede.325.1666292279709; Thu, 20 Oct 2022 11:57:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666292279; cv=none; d=google.com; s=arc-20160816; b=E8Q3Hal+xkmfZl9rnnd90QYtq/Yhb9ndDlKV+OSlMK5rOAgKWxujf10kd2a9noFmCw aNcLn1rZayFwKW4Z1D+cT89zD7WV5F83FG9hXuA/e9QGBhKBj43a645STslrt9+oPLm6 Fj4tOwCNiAGBHw4W3ZjNVGZycK9msvrYbiUQGv5kBQ+GOMU4AgWxZYMrDDWD62gRblgj +0BbTISKgsljk9W6UHx5o0Lo8ZBgfyr2W4iwOv4a3ukws7VlDjnjXw46FGd5oMmcxOFE wDrYMw0j41rEfuNC9pYSwHk3FaQnBv4ceEHJtYrUabhSGAQHtNbr0KER0wzJJKQ81Wq3 gBMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RswLkUQZgOX210lwrclExJv9Imy6Jbq5VPuyg8KfHoM=; b=h3FStp569f0rp0vGtm7ygc0DRPJtmlZJ1z0FlKUC9MehuKSYRlySI8IqQWShw8PCCa qgtMIGuxBblcvaIrmoZoj7CQVsCznBeQ9slPjjS4LwXjxi2efVjoHnut+Z2SdfMShtI5 KsYqGvg7aLHsunpdRGT2aAqYmh4BGmb91MrPbEWwjPEyA2IPg/WeUzu0JsJ+1Szkxkox DVHUNgIcP3yezTPKsN6V3xeH0awUF5zIvqXTF7LXRIb4OBHRTQ4xlwGNov8mZEGMTVFf v9H3jnr0n0FL+ODlkWDCYImpyQKUAUZhtpCJ+8uidyTw6eCP2AvbeTGgnf9Ms5Iqr5my bQjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ky4WgJ2s; 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 x23-20020a170906135700b007470b52f94esi15132566ejb.199.2022.10.20.11.57.34; Thu, 20 Oct 2022 11:57:59 -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=ky4WgJ2s; 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 S230316AbiJTSaU (ORCPT + 99 others); Thu, 20 Oct 2022 14:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbiJTS3z (ORCPT ); Thu, 20 Oct 2022 14:29:55 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B29B861B11 for ; Thu, 20 Oct 2022 11:29:53 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id c20so480583ljj.7 for ; Thu, 20 Oct 2022 11:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RswLkUQZgOX210lwrclExJv9Imy6Jbq5VPuyg8KfHoM=; b=ky4WgJ2sV1PKnE8V5sQnBnftORIfi49y4SjH4oUyu15+Z1iit3HvxuvXusNDPpkC/P 9d1d+8xdpZqzETTAoyoa5f9T2h7q+hFRwgvYnXJtNyh14QkZ6hLaki+k9bcSOsWR6oBh RMOMdLpKGbwWdpN0mIyTy1cNFDY4pfsF1IeM5IZP+uZxr/dincFH1s8x6EQ7Bt/PZz3F UZcIiJjlojYVBxPXAyC7Xljk771vVl5yfBf6PFncSz6y4qr1FzSE3TXZXSrBC6V4f3ZS zEVKicD4gUs5YRhi6DX6X63eyFOaex+IQhBDBVQvqCAC3+8nWZRg1SuzCDMl5rw4trh/ oZMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RswLkUQZgOX210lwrclExJv9Imy6Jbq5VPuyg8KfHoM=; b=Yz86uXKCiuD3X5ZFOT4J12lgaBVoP40VthnD3EU1tU4/K8ZcTnA9JtXatbbRJnilIU RjHH3b30CJ3yZNoTxSZuZDrj0N2TQ8DcBVO/q0mHR8hnUywNIqMw4vighKwzgP6uvjQb 5I0tw5+JS1FlrWVkAPUAfPaTJ50C7vyc/BlBcqc47wPt4/6Fz38xEHZYxJU7nZCVKoAS H4tdn32PtqN/mj8oc1lSKf7n9QKjoD/GkgeNZnDyKP6vl2CZTfZKdW7np93KDb4FNrTN RAZvrpAReYQqeExAtw/cjoacbr3/Vnkc5sD5I0Efw2pOCQr7N7V6sPVA6pqzrTTwHabj 3LMg== X-Gm-Message-State: ACrzQf3SO+AKroePCCdigk0wdjEoC6k3k6Wo8PRajlh0y6/LmVV5tCDi Ltz/mNsnjrU+BgzlNbmVXu8= X-Received: by 2002:a2e:b0c3:0:b0:26e:6617:ed08 with SMTP id g3-20020a2eb0c3000000b0026e6617ed08mr5135924ljl.120.1666290592079; Thu, 20 Oct 2022 11:29:52 -0700 (PDT) Received: from elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net ([20.240.130.248]) by smtp.googlemail.com with ESMTPSA id h10-20020a0565123c8a00b00497a3e11608sm2797216lfv.303.2022.10.20.11.29.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 11:29:51 -0700 (PDT) From: Tanjuate Brunostar To: forest@alittletooquiet.net Cc: greg@kroah.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev, Tanjuate Brunostar Subject: [PATCH v3] staging: vt6655: Fix Lines should not end with a '(' Date: Thu, 20 Oct 2022 18:27:47 +0000 Message-Id: <20221020182948.14982-1-tanjubrunostar0@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 --- v2: put static and void on the same line and adjusted the indentation as suggested by Greg KH --- drivers/staging/vt6655/rxtx.c | 78 +++++++++++++++-------------------- 1 file changed, 33 insertions(+), 45 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 5bdb5176772c..1e5036121665 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -85,35 +85,27 @@ static const unsigned short wFB_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 -s_vGenerateTxParameter( - struct vnt_private *pDevice, - unsigned char byPktType, - struct vnt_tx_fifo_head *, - void *pvRrvTime, - void *pvRTS, - void *pvCTS, - unsigned int cbFrameSize, - bool bNeedACK, - unsigned int uDMAIdx, - void *psEthHeader, - unsigned short wCurrentRate -); +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_vGenerateTxParameter(struct vnt_private *pDevice, + unsigned char byPktType, + struct vnt_tx_fifo_head *, + void *pvRrvTime, + void *pvRTS, + void *pvCTS, + unsigned int cbFrameSize, + bool bNeedACK, + unsigned int uDMAIdx, + void *psEthHeader, + unsigned short wCurrentRate); static unsigned int s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType, @@ -121,22 +113,18 @@ s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType, unsigned int uDMAIdx, struct vnt_tx_desc *pHeadTD, unsigned int uNodeIndex); -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); /*--------------------- Export Variables --------------------------*/ -- 2.34.1