Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1273478pxb; Wed, 10 Feb 2021 04:42:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIXTk8u/BMi2NovTS7tHj3Je222jcx5AtRyNKETEpo7oOyOkg6W6SdR/HSdK5rnENj1gU3 X-Received: by 2002:a17:906:f8d4:: with SMTP id lh20mr2736823ejb.466.1612960959635; Wed, 10 Feb 2021 04:42:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612960959; cv=none; d=google.com; s=arc-20160816; b=G+Samf1g8t+8PeghdvK0uQ84XWwmLluOUkL4btWYtbX6WpEClVUNua+34c2KZAJbYW PkhaE7j/qhKtjXkHo/Kh7xByaPUHLY+drTkl7lyxPrBRJ9OsgeXUZXR0MdHSz/i+oPyA ByXGeU1mLD/VBXxTQHUwWj5fFEUheTJ5IgMKru9iICvvcH81oJc7WD504SvhsYia54lw kAcY/+4IMZsIvRpquhCAPUSziUMHbv9cHg+OL1ySSGCjcJfCJzWn4HYKqYsUJXI8z+eJ E+lfr/Gt+n1w4aBaNV4zmy1i0+ctie4ZY6Hv5rtOpAUtVdyVkvDOtzrI6heJ77N0Hk0J gIYA== 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=hDKOpaktEStTreJr6wPyslF3miCA2TzjjN6jRt7iPts=; b=JzFqfi9XehpdC+5hlZtpkR7cWGFxjr9JMsWESq0qGGEEm2ZSZXDm+C7zJa3F9BjW3K COrQIWpZXe+CDuH31Mm5rK+jZ+p3yk0CFXjO4ahZ1Q4wLzUVW1WnZ9j45suNq1eJoGTV ctRaAvTdn1Y7HxDDU8gLlzgHLuLcJ2SMwtNkrFpD2jkt6Wx4LEUvWEr9VeF4XVftktMG Yyx5Jdrvt6p2YooafpDaEZfk7vPv6o17ZPaKbK7bFFwR7t4KxI26crYmeYz6NNEHIPzt 0IG6URuAXA9B8jg1AgT9o5bCtYHC2FVMHPK//syrNfg6QrQwlMmSNI3gdYR6Fku0Roll SnOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MrdG9kg6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si1198934ejo.460.2021.02.10.04.42.16; Wed, 10 Feb 2021 04:42:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MrdG9kg6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231768AbhBJMjG (ORCPT + 99 others); Wed, 10 Feb 2021 07:39:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230097AbhBJMgr (ORCPT ); Wed, 10 Feb 2021 07:36:47 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C34DDC061756 for ; Wed, 10 Feb 2021 04:36:06 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id j11so1694009wmi.3 for ; Wed, 10 Feb 2021 04:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=hDKOpaktEStTreJr6wPyslF3miCA2TzjjN6jRt7iPts=; b=MrdG9kg6X4KPiSGmo1DrNL18ceyfSYusJI3mskQH0LSvKNMm/WYcibKYxde2grkDwA lfRYUMI+VGtFN6mcff2wRbB1VDk/nfeGXF+thBLQWEY7pglU3AujIpTInlvDRDqQmHbF X9nSW12/I7Fc9rss3x+U4UClyuNyAX5HmHZD+36pZ33Syrsvcbc3BB9GM7IShNPKO4Az BJUPdcg+DolMWdEKLgP5kF5tDx4V7+JCDHlR5TwGMqvtRTPw2mYkVFuKxD+BPUZJnYPz UK8NejyKFQehkmOWOhWe7zmeTijKvVaQUJ2bY7dQc/jWeMJEoSqbrkApJovnC2LXV4uR kAwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hDKOpaktEStTreJr6wPyslF3miCA2TzjjN6jRt7iPts=; b=TFV7/gO6O22VRA+ZZIFEzey4yhZIQgyddWcNJG5JDiLYWZRaeSQNqGSxIghCs/tx9i 3fCpcI2uWaiSmk3e5oP/JmKKVmp3hyzWax5pxjGNCjVhFmiZ3MpmmAuJ2+oD70/P0sqI BPWOOlWhcb0BSwoWNHiPxG6jdZ2YxIkRSPrNfPweIbzIk7l87SqazOiiRcb5sD3rCct3 SLUexPkDpSeV3GemPJ950sGBQ8FYF2lbm4aN3MBX3lx5dxHivodyIxdGiGm8MEY/61Of cumWhgmAu31HEOnY64cwSlY23OEGMsuFaCN8YtDT0lVc4Qq2/XY0E3wKyg+qUe+6GNAV Ap+w== X-Gm-Message-State: AOAM531ZARRXkCGeQXysVHxXNVh0OckTtf7b+Q5qD/Bqqi/iE0zrh+d3 uw2+djX4VZyWMpp+TRdlVl0RIQZcfW55Un/l X-Received: by 2002:a05:600c:4314:: with SMTP id p20mr2778220wme.52.1612960565373; Wed, 10 Feb 2021 04:36:05 -0800 (PST) Received: from localhost ([49.207.131.89]) by smtp.gmail.com with ESMTPSA id i10sm3152614wrp.0.2021.02.10.04.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 04:36:04 -0800 (PST) Date: Wed, 10 Feb 2021 18:05:53 +0530 From: Aakash Hemadri To: Dan Carpenter Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, Shuah Khan Subject: Re: [PATCH] staging: ralink-gdma: Fix checkpatch.pl CHECK Message-ID: <20210210123553.bzkipyhvedvlcvcc@xps.yggdrail> References: <20210210120348.262328-1-aakashhemadri123@gmail.com> <20210210121915.GX2696@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210210121915.GX2696@kadam> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/02/10 03:19PM, Dan Carpenter wrote: > On Wed, Feb 10, 2021 at 05:33:48PM +0530, Aakash Hemadri wrote: > > Remove CHECK: Lines should not end with a '(' > > > > Signed-off-by: Aakash Hemadri > > --- > > > > drivers/staging/ralink-gdma/ralink-gdma.c | 28 ++++++++++++----------- > > 1 file changed, 15 insertions(+), 13 deletions(-) > > > > diff --git a/drivers/staging/ralink-gdma/ralink-gdma.c b/drivers/staging/ralink-gdma/ralink-gdma.c > > index 655df317d0ee..a11f915f3308 100644 > > --- a/drivers/staging/ralink-gdma/ralink-gdma.c > > +++ b/drivers/staging/ralink-gdma/ralink-gdma.c > > @@ -135,8 +135,7 @@ struct gdma_data { > > int (*start_transfer)(struct gdma_dmaengine_chan *chan); > > }; > > > > -static struct gdma_dma_dev *gdma_dma_chan_get_dev( > > - struct gdma_dmaengine_chan *chan) > > +static struct gdma_dma_dev *gdma_dma_chan_get_dev(struct gdma_dmaengine_chan *chan) > > { > > return container_of(chan->vchan.chan.device, struct gdma_dma_dev, > > ddev); > > @@ -510,10 +509,11 @@ static void gdma_dma_issue_pending(struct dma_chan *c) > > spin_unlock_irqrestore(&chan->vchan.lock, flags); > > } > > > > -static struct dma_async_tx_descriptor *gdma_dma_prep_slave_sg( > > - struct dma_chan *c, struct scatterlist *sgl, > > - unsigned int sg_len, enum dma_transfer_direction direction, > > - unsigned long flags, void *context) > > +static struct dma_async_tx_descriptor > > + *gdma_dma_prep_slave_sg(struct dma_chan *c, struct scatterlist *sgl, > > Don't do it like this... The original code is better so, I guess, lets > leave it as is. There are two accepted ways to start a function in the > kernel: > > ONE: > static type > function_name(paramenters) > > TWO > static type function_name(paramenters) > > Either option will let you grep for the names of the functions: > > egrep "^[a-zA-Z]" dir/file.c | grep '(' > > regards, > dan carpenter > > Appreciate the explanation, Will drop it thanks, aakash hemadri