Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1404803rwi; Wed, 19 Oct 2022 10:09:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7f+gapE0s1pI9fWPVYiCwcooitK1nYK5DY3R5/1vUUD7Smg1ANM5x6tPq/yhioz2gZ5bV/ X-Received: by 2002:a63:942:0:b0:43c:428d:16a9 with SMTP id 63-20020a630942000000b0043c428d16a9mr7713678pgj.423.1666199352286; Wed, 19 Oct 2022 10:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666199352; cv=none; d=google.com; s=arc-20160816; b=jh3H/N94/VShNRK/FyOmz7X55r9xYFwh2NV6gX69CQf0q6oYBb+pLaFnn6pASiNYB0 XXF12NUiR9uQo8UNDhHqC+snJMIyjz8Oj/xjH+WE1ZkENEytdhm/sqR9JtqLcS5L730y +XQ/EJkoUJh+7TTV6x9bgEOdBzxAaP7iKZwpZTirN9/gl/zBnilKCoe6HsQAaTKC8Ji+ sRlrZnVchvkdGI6gV7u/TDtp9dHuKxYCOiFuc6+GMPYBMFq2zlUFX29X4yt6HoF3RBA8 /Qtv7GH3vyE4iHGJR8B5n+4WKxVgUMzDr9sa+GbHsgZ5mEjvejj3LEzak2Vlx+S92OL/ sLQw== 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:feedback-id :dkim-signature:dkim-signature; bh=BkubxaaQP/pRE+X3k8IHiuqvh0MP//74GbYUHpjY764=; b=xH7iQhte2vpFWMPLGxmPHTNqnEmd9vzsfTEJMrxRfecm2jav+CRyt0Pj2V1d1FraAq TEGEurxCgyo5OM0HjR7IIYut9dUIYHLw2AWwmWSHR2+h90KdJ183witlpYUu7uRKbnDi CnQqDUu1dvpT9AEigfLPhuPAAbPHl1e7MUMIZmzWqJHyislOw+gzrOsOh96iGNXwgM78 cR5ijIoVvf2mTMoIZ7cdzjwJbREALGSXvWno9/E1eHqsH6ukoLGXZ4ukR7+eq6yWfghW rYICyNruMyblMJkWEVE/j7jv6CiFUqs7FBhglRYYvjaE1MEsxpJJPJ+5cK+rfQ3cQjFO Jmtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=a8OUHYwx; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=UwrOURvq; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a63ba44000000b0044ed36e5a29si19220996pgu.715.2022.10.19.10.09.00; Wed, 19 Oct 2022 10:09:12 -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=@kroah.com header.s=fm3 header.b=a8OUHYwx; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=UwrOURvq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231572AbiJSRAi (ORCPT + 99 others); Wed, 19 Oct 2022 13:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231536AbiJSRAT (ORCPT ); Wed, 19 Oct 2022 13:00:19 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D749B168E43 for ; Wed, 19 Oct 2022 10:00:13 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2D1375C0121; Wed, 19 Oct 2022 13:00:11 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 19 Oct 2022 13:00:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1666198811; x=1666285211; bh=BkubxaaQP/ pRE+X3k8IHiuqvh0MP//74GbYUHpjY764=; b=a8OUHYwxVenUgNZQPBYwk5P6Rv wPtYathobbuItjWvsLctpusp5vAM9Y5iBh6LYdoV4kNORybI0h91CREvkXg30tS8 NEMPqB6JRXBxSosw582NWNukwT6OTVSX7DP1CsicMt4sAw7oXV8kS4NNER5fPMCm LMeUEF+EvICeQhKu4GcX/knArr0+Z6Lufc3ih0Cy2EYbCACp4ProQN2ymAVwXRAp 3ehHrTr+F1xt6MHxvsM5ptgeOVzqSs+yQBmAJsO4QTKbOg+HDz7jzZ0JDLXP1TZB leWAuxzLMyk6zHPv7W4HT7J4aEOwJgxoufl8Xox71RC80TXHuiPXo6+zAegg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1666198811; x=1666285211; bh=BkubxaaQP/pRE+X3k8IHiuqvh0MP //74GbYUHpjY764=; b=UwrOURvqm7EuWKouLdRtvuMjj6WPhYW76YuWaCuQkagG VLk9OammAfbcRvLcGPaAd/890XM4r1Td8MiIL32SIc8ESEjpUTuKg+PLWJ9enmo5 RCcGDrtAX3Xj6A+wuyU8GToybNesIQoGhWyEOBZ0SvFU6npUTEWy7hhM3p3jPVj9 yw82sO19Eyzw900ufB584kYFhTNZ1kId4lR4ztS/pPQLXhlwxw1AB3aDt0W2qRkN ID5rwZj/P+J60jymuw7Ke1jHRjw+bFqfMakXWCoqWXmGVwFmmWTBZ6Uc6qZIji0G Sal/ShsVd5+SV6xrbM0xSbk37K+fhb0ogmR5Z4ilJg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeelgedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgv ghcumffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeehge dvvedvleejuefgtdduudfhkeeltdeihfevjeekjeeuhfdtueefhffgheekteenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhroh grhhdrtghomh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Oct 2022 13:00:10 -0400 (EDT) Date: Wed, 19 Oct 2022 19:00:07 +0200 From: Greg KH To: Tanjuate Brunostar Cc: forest@alittletooquiet.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: vt6655: Fix Lines should not end with a '(' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 Wed, Oct 19, 2022 at 04:05:06PM +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 > --- > drivers/staging/vt6655/rxtx.c | 44 ++++++++++++++++------------------- > 1 file changed, 20 insertions(+), 24 deletions(-) > > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c > index 5bdb5176772c..ff855def0bd5 100644 > --- a/drivers/staging/vt6655/rxtx.c > +++ b/drivers/staging/vt6655/rxtx.c > @@ -87,33 +87,29 @@ static const unsigned short wFB_Opt1[2][5] = { > /*--------------------- 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 > -); > +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); Why not also put the "static void" on the same line as the function name? > > 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 > -); > +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); I do not understand this indentation at all, how did you choose it? thanks, greg k-h