Skip to contentSkip to conversation

staging: vme_user: add blank line after declarations in fake_driver struct

PATCH In review Teng Liu 2 participants 2 messages Mar 17

Subsystems (2)
lore
Share & tools
lore

Teng Liu

author
#0 lore raw

PATCH 1/1 staging: vme_user: add blank line after declarations in fake_driver struct

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

---
 drivers/staging/vme_user/vme_fake.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/vme_user/vme_fake.c +1 -0
index be4ad47ed..eb918a857 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.53.0
#1 lore raw
Quoted 17 lines · Teng Liu

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

---
 drivers/staging/vme_user/vme_fake.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/vme_user/vme_fake.c +0 -0
index be4ad47ed..eb918a857 100644

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

Quoted 5 lines
drivers/staging/vme_user/vme_fake.c +1 -0
@@ -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

Quoted 5 lines
drivers/staging/vme_user/vme_fake.c +0 -0
 	void *lm_data[4];
 	struct tasklet_struct int_tasklet;
Signature · 1 line
2.53.0