Skip to contentSkip to conversation

staging: vme_user: fix missing blank line after declarations

PATCH In review [email protected] 2 participants 2 messages Jan 18

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vme_user: fix missing blank line after declarations

From: shinsj4653 <[email protected]>

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.

---
 drivers/staging/vme_user/vme_fake.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/vme_user/vme_fake.c +1 -0
index 731fbba17dfd..55c00e1d162d 100644
@@ -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;
Signature · 1 line
2.47.3
#1 lore raw
Quoted 9 lines · On Sun, Jan 18, 2026 at 11:19:54AM -0500, [email protected] wrote:

From: shinsj4653 <[email protected]>

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.

Use a real name, please.

drivers/staging/vme_user/vme_fake.c struct fake_driver { · line 70

Quoted 13 lines
---
 drivers/staging/vme_user/vme_fake.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/vme_user/vme_fake.c +1 -0
index 731fbba17dfd..55c00e1d162d 100644
@@ -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