* [PATCH] staging: vme_user: fix missing blank line after declarations
@ 2026-01-18 16:19 shinsj4653
2026-01-18 19:24 ` Dan Carpenter
0 siblings, 1 reply; 4+ messages in thread
From: shinsj4653 @ 2026-01-18 16:19 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, nadzya.info, shinsj4653
From: shinsj4653 <shinsj4653@gmail.com>
This patch fixes a coding style issue reported by checkpatch.pl:
"WARNING: Missing a blank line after declarations"
A blank line is added to separate the variable declaration from
the code logic, improving readability.
Signed-off-by: shinsj4653 <shinsj4653@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 731fbba17dfd..55c00e1d162d 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 *);
void *lm_data[4];
struct tasklet_struct int_tasklet;
--
2.47.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: vme_user: fix missing blank line after declarations
2026-01-18 16:19 shinsj4653
@ 2026-01-18 19:24 ` Dan Carpenter
0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2026-01-18 19:24 UTC (permalink / raw)
To: shinsj4653; +Cc: gregkh, linux-staging, linux-kernel, nadzya.info
On Sun, Jan 18, 2026 at 11:19:54AM -0500, shinsj4653@gmail.com wrote:
> From: shinsj4653 <shinsj4653@gmail.com>
>
> This patch fixes a coding style issue reported by checkpatch.pl:
> "WARNING: Missing a blank line after declarations"
>
> A blank line is added to separate the variable declaration from
> the code logic, improving readability.
>
> Signed-off-by: shinsj4653 <shinsj4653@gmail.com>
Use a real name, please.
> ---
> 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 731fbba17dfd..55c00e1d162d 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;
> +
This is a bug in checkpatch.pl. Try to fix checkpatch instead or
otherwise just ignore it when checkpatch is wrong. The rules is that
when there is a declaration block at the start of a function then there
is a blank line between the declarations and the code. Here, we're not
inside a function so something went wrong.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] staging: vme_user: fix missing blank line after declarations
@ 2026-03-17 9:54 Marco Antonio Solis Segura
2026-03-17 11:41 ` Dan Carpenter
0 siblings, 1 reply; 4+ messages in thread
From: Marco Antonio Solis Segura @ 2026-03-17 9:54 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, Marco Antonio Solis Segura
Add a missing blank line after declarations in struct fake_driver
to satisfy checkpatch.pl warning.
Signed-off-by: Marco Antonio Solis Segura <mshdevv@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 *);
void *lm_data[4];
struct tasklet_struct int_tasklet;
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: vme_user: fix missing blank line after declarations
2026-03-17 9:54 [PATCH] staging: vme_user: fix missing blank line after declarations Marco Antonio Solis Segura
@ 2026-03-17 11:41 ` Dan Carpenter
0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2026-03-17 11:41 UTC (permalink / raw)
To: Marco Antonio Solis Segura; +Cc: gregkh, linux-staging, linux-kernel
On Tue, Mar 17, 2026 at 03:54:53AM -0600, Marco Antonio Solis Segura wrote:
> Add a missing blank line after declarations in struct fake_driver
> to satisfy checkpatch.pl warning.
>
> Signed-off-by: Marco Antonio Solis Segura <mshdevv@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 also a declaration so checkpatch is just wrong. (Ignore
checkpatch mistakes or maybe try your hand at fixing checkpatch.pl).
regards,
dan carpenter
> void *lm_data[4];
> struct tasklet_struct int_tasklet;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-17 11:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17 9:54 [PATCH] staging: vme_user: fix missing blank line after declarations Marco Antonio Solis Segura
2026-03-17 11:41 ` Dan Carpenter
-- strict thread matches above, loose matches on Subject: below --
2026-01-18 16:19 shinsj4653
2026-01-18 19:24 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox