Skip to contentSkip to conversation

batman-adv: remove semi-colon after macro definition

PATCH Applied Antonio Quartulli 2 participants 2 messages May 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: remove semi-colon after macro definition

Reported by checkpatch with the following warning:
"WARNING: macros should not use a trailing semicolon"

---
 debugfs.c | 4 ++--
 sysfs.c   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
debugfs.c +2 -2
index 99f2ba0..a12e25e 100644
@@ -342,7 +342,7 @@ struct batadv_debuginfo batadv_debuginfo_##_name = {	\
 		  .llseek = seq_lseek,			\
 		  .release = single_release,		\
 		}					\
-};
+}
 
 /* the following attributes are general and therefore they will be directly
  * placed in the BATADV_DEBUGFS_SUBDIR subdirectory of debugfs
@@ -404,7 +404,7 @@ struct batadv_debuginfo batadv_hardif_debuginfo_##_name = {	\
 		.llseek = seq_lseek,				\
 		.release = single_release,			\
 	},							\
-};
+}
 static BATADV_HARDIF_DEBUGINFO(originators, S_IRUGO,
 			       batadv_originators_hardif_open);
 
sysfs.c +2 -2
index f51b484..fc47baa 100644
@@ -108,7 +108,7 @@ struct batadv_attribute batadv_attr_vlan_##_name = {	\
 		 .mode = _mode },			\
 	.show   = _show,				\
 	.store  = _store,				\
-};
+}
 
 /* Use this, if you have customized show and store functions */
 #define BATADV_ATTR(_name, _mode, _show, _store)	\
@@ -117,7 +117,7 @@ struct batadv_attribute batadv_attr_##_name = {		\
 		 .mode = _mode },			\
 	.show   = _show,				\
 	.store  = _store,				\
-};
+}
 
 #define BATADV_ATTR_SIF_STORE_BOOL(_name, _post_func)			\
 ssize_t batadv_store_##_name(struct kobject *kobj,			\
Signature · 1 line
1.8.5.5
#1 lore raw
Quoted 8 lines · On Thursday 15 May 2014 11:24:26 Antonio Quartulli wrote:

Reported by checkpatch with the following warning:
"WARNING: macros should not use a trailing semicolon"

---
 debugfs.c | 4 ++--
 sysfs.c   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Applied in revision f95ce71.

Thanks,
Marek