summary refs log tree commit diff
path: root/fs/xfs/xfs_sb.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-04-02 18:13:40 +0000
committerAlex Elder <aelder@sgi.com>2011-04-08 08:09:24 -0500
commit957935dcd8e11d6f789b4ed769b376040e15565b (patch)
tree6f120bac2011bdba637f39d3704ec0272b883726 /fs/xfs/xfs_sb.h
parentecb697c16c1718ae97bb73ce41a5d5ac2aed29ec (diff)
downloadlinux-957935dcd8e11d6f789b4ed769b376040e15565b.tar.gz
xfs: fix xfs_debug warnings
For a CONFIG_XFS_DEBUG=n build gcc complains about statements with no
effect in xfs_debug:

fs/xfs/quota/xfs_qm_syscalls.c: In function 'xfs_qm_scall_trunc_qfiles':
fs/xfs/quota/xfs_qm_syscalls.c:291:3: warning: statement with no effect

The reason for that is that the various new xfs message functions have a
return value which is never used, and in case of the non-debug build
xfs_debug the macro evaluates to a plain 0 which produces the above
warnings.  This can be fixed by turning xfs_debug into an inline function
instead of a macro, but in addition to that I've also changed all the
message helpers to return void as we never use their return values.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_sb.h')
0 files changed, 0 insertions, 0 deletions