summaryrefslogtreecommitdiff
path: root/drivers/scsi/fnic/fnic_fcs.c
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 /drivers/scsi/fnic/fnic_fcs.c
parentecb697c16c1718ae97bb73ce41a5d5ac2aed29ec (diff)
downloadlinux-next-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 'drivers/scsi/fnic/fnic_fcs.c')
0 files changed, 0 insertions, 0 deletions