Skip to contentSkip to conversation

Staging: lustre: include: linux: libcfs: Remove unnecessary semicolon

PATCH In review Melike Yurtoglu 2 participants 2 messages Feb 19, 2015 – Feb 26, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: lustre: include: linux: libcfs: Remove unnecessary semicolon

This fixes the checkpatch.pl warning:
WARNING: macros should not use a trailing semicolon.

---
 drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h +2 -2
index 2e5a9e5..4461024 100644
@@ -195,8 +195,8 @@ do {								\
 	       .msg_file   = __FILE__,				\
 	       .msg_fn     = __func__,				\
 	       .msg_line   = __LINE__,				\
-	       .msg_cdls   = (cdls)	 };			\
-	dataname.msg_mask   = (mask);
+	       .msg_cdls   = (cdls)	 }			\
+	dataname.msg_mask   = (mask)
 
 /**
  * Filters out logging messages based on mask and subsystem.
Signature · 1 line
1.8.3.2
maintainer
#1 lore raw
Quoted 13 lines · Melike Yurtoglu

This fixes the checkpatch.pl warning:
WARNING: macros should not use a trailing semicolon.

---
 drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h +0 -0
index 2e5a9e5..4461024 100644

drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h do { \ · line 202

Quoted 10 lines
drivers/staging/lustre/include/linux/libcfs/libcfs_debug.h +2 -2
@@ -195,8 +195,8 @@ do {								\
 	       .msg_file   = __FILE__,				\
 	       .msg_fn     = __func__,				\
 	       .msg_line   = __LINE__,				\
-	       .msg_cdls   = (cdls)	 };			\
-	dataname.msg_mask   = (mask);
+	       .msg_cdls   = (cdls)	 }			\
+	dataname.msg_mask   = (mask)
 
 /**
  * Filters out logging messages based on mask and subsystem.

This patch is not correct at all, did you try to build the driver after making it? Please _always_ test build your patches.

thanks,

greg k-h