From: Dan Carpenter <dan.carpenter@linaro.org>
To: Teng Liu <27rabbitlt@gmail.com>
Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: vme_user: add blank line after declarations in fake_driver struct
Date: Tue, 17 Mar 2026 17:44:13 +0300 [thread overview]
Message-ID: <ablovfRxnxK93WDk@stanley.mountain> (raw)
In-Reply-To: <20260317131821.54768-2-27rabbitlt@gmail.com>
On Tue, Mar 17, 2026 at 02:18:22PM +0100, Teng Liu wrote:
> Add a blank line between regular field declarations and function pointer
> declarations in struct fake_driver to follow the kernel coding style
> convention of separating declarations for improved readability.
>
> This addresses the following checkpatch warning:
> WARNING: Missing a blank line after declarations
>
> Signed-off-by: Teng Liu <27rabbitlt@gmail.com>
> ---
> drivers/staging/vme_user/vme_fake.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/staging/vme_user/vme_fake.c b/drivers/staging/vme_user/vme_fake.c
> index be4ad47ed..eb918a857 100644
> --- a/drivers/staging/vme_user/vme_fake.c
> +++ b/drivers/staging/vme_user/vme_fake.c
> @@ -67,6 +67,7 @@ struct fake_driver {
> unsigned long long lm_base;
> u32 lm_aspace;
> u32 lm_cycle;
> +
> void (*lm_callback[4])(void *);
This is in a struct, right? It's all declarations... Just ignore
checkpatch when it prints nonsense.
regards,
dan carpenter
> void *lm_data[4];
> struct tasklet_struct int_tasklet;
> --
> 2.53.0
>
prev parent reply other threads:[~2026-03-17 14:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 13:18 [PATCH] staging: vme_user: add blank line after declarations in fake_driver struct Teng Liu
2026-03-17 14:44 ` Dan Carpenter [this message]
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=ablovfRxnxK93WDk@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=27rabbitlt@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox