From: Darrick J. Wong Date: Mon, 10 Apr 2017 22:29:48 +0000 (-0500) Subject: libxfs: fix xfs_extent_busy_flush macro definition X-Git-Tag: v4.11.0-rc1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0a898fec2cfa59feae5bdbcbf472080acfa7e14;p=thirdparty%2Fxfsprogs-dev.git libxfs: fix xfs_extent_busy_flush macro definition xfs_extent_busy_flush is a void function, so don't reduce it to zero. This shuts up gcc warnings about do-nothing statements. [sandeen: switch to more common ((void)0) paradigm] Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h index c2d4494b6..23875e5d5 100644 --- a/libxfs/libxfs_priv.h +++ b/libxfs/libxfs_priv.h @@ -419,7 +419,7 @@ roundup_64(__uint64_t x, __uint32_t y) *(busy_gen) = __foo; \ false; \ }) -#define xfs_extent_busy_flush(mp,pag,busy_gen) (0) +#define xfs_extent_busy_flush(mp,pag,busy_gen) ((void)(0)) /* avoid unused variable warning */ #define xfs_alloc_busy_insert(tp,ag,b,len) ({ \