Skip to contentSkip to conversation

gfs2: remove trailing semicolon in macro definition

PATCH In review [email protected] 2 participants 2 messages Nov 27, 2020 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gfs2: remove trailing semicolon in macro definition

From: Tom Rix <[email protected]>

The macro use will already have a semicolon.

---
 fs/gfs2/util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/gfs2/util.h +1 -1
index d7562981b3a0..493020393ceb 100644
@@ -162,7 +162,7 @@ void gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
 gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, true);
 
 #define gfs2_io_error_bh(sdp, bh) \
-gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, false);
+gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, false)
 
 
 extern struct kmem_cache *gfs2_glock_cachep;
Signature · 1 line
2.18.4
#1 lore raw
Quoted 23 lines · On Fri, Nov 27, 2020 at 8:12 PM <[email protected]> wrote:

From: Tom Rix <[email protected]>

The macro use will already have a semicolon.

---
 fs/gfs2/util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/gfs2/util.h +1 -2
index d7562981b3a0..493020393ceb 100644
@@ -162,7 +162,7 @@ void gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
 gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, true);
 
 #define gfs2_io_error_bh(sdp, bh) \
-gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, false);
+gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, false)
 
 
 extern struct kmem_cache *gfs2_glock_cachep;
--
Quoted 1 line

2.18.4

Yeah okay, there are two more instances of exactly the same pattern further below in the same header file. I'm adding fixes for those as well.

Thanks,
Andreas