All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "John B. Wyatt IV" <jbwyatt4@gmail.com>
Cc: outreachy-kernel@googlegroups.com,
	"Harold André" <harold.andre@gmx.fr>,
	YueHaibing <yuehaibing@huawei.com>,
	"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
	"Nishka Dasgupta" <nishka.dasgupta@yahoo.com>,
	"Stephen Boyd" <swboyd@chromium.org>
Subject: Re: [PATCH] staging: ralink-gdma: Move blank line to fix warning
Date: Thu, 2 Apr 2020 19:32:13 +0200	[thread overview]
Message-ID: <20200402173213.GD3218351@kroah.com> (raw)
In-Reply-To: <20200402082309.839063-1-jbwyatt4@gmail.com>

On Thu, Apr 02, 2020 at 01:23:09AM -0700, John B. Wyatt IV wrote:
> Move a blank line within a struct to fix/silence a style warning.
> 
> Reported by checkpatch.
> 
> Signed-off-by: John B. Wyatt IV <jbwyatt4@gmail.com>
> ---
> Note:
> ralink-gdma does not build; even with make allyesconfig.
> I did not find a menu option with make menuconfig.
> 
>  drivers/staging/ralink-gdma/ralink-gdma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/ralink-gdma/ralink-gdma.c b/drivers/staging/ralink-gdma/ralink-gdma.c
> index eabf1093328e..9c398048daac 100644
> --- a/drivers/staging/ralink-gdma/ralink-gdma.c
> +++ b/drivers/staging/ralink-gdma/ralink-gdma.c
> @@ -122,9 +122,9 @@ struct gdma_dma_dev {
>  	struct gdma_data *data;
>  	void __iomem *base;
>  	struct tasklet_struct task;
> +
>  	volatile unsigned long chan_issued;
>  	atomic_t cnt;
> -
>  	struct gdma_dmaengine_chan chan[];
>  };

That's a funny style warning, and this patch isn't correct, sorry.

Please see the archives for the many times this has come up.

Remember, checkpatch is just a guide, it's not always right, you always
have to use your brain in considering what it is telling you.

thanks,

greg k-h


  parent reply	other threads:[~2020-04-02 17:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-02  8:23 [PATCH] staging: ralink-gdma: Move blank line to fix warning John B. Wyatt IV
2020-04-02  9:31 ` [Outreachy kernel] " Julia Lawall
2020-04-03  1:21   ` John B. Wyatt IV
2020-04-03  2:37     ` checkpatch doesn't recognize register or volatile declarations (was Re: [Outreachy kernel] [PATCH] staging: ralink-gdma: Move blank line to fix warning) Joe Perches
2020-04-03  3:10     ` Joe Perches
2020-04-02 17:32 ` Greg Kroah-Hartman [this message]
2020-04-03  5:22   ` [PATCH] staging: ralink-gdma: Move blank line to fix warning John Wyatt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200402173213.GD3218351@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=gustavo@embeddedor.com \
    --cc=harold.andre@gmx.fr \
    --cc=jbwyatt4@gmail.com \
    --cc=nishka.dasgupta@yahoo.com \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=swboyd@chromium.org \
    --cc=yuehaibing@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.