]> git.karo-electronics.de Git - karo-tx-linux.git/commit
include/linux/bio.h: use a static inline function for bio_integrity_clone()
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 24 Oct 2011 14:53:53 +0000 (01:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 08:40:50 +0000 (19:40 +1100)
commite3bf4b45ea7d912523eab1ff7ce3df30996a5020
tree8887b7202f532a7e26a06de044fa92cd97241006
parent5cbb3c349497e884aa59ad887d4d3caf5e78d517
include/linux/bio.h: use a static inline function for bio_integrity_clone()

When CONFIG_BLK_DEV_INTEGRITY is not set, we get these warnings:

drivers/md/dm.c: In function 'split_bvec':
drivers/md/dm.c:1061:3: warning: statement with no effect
drivers/md/dm.c: In function 'clone_bio':
drivers/md/dm.c:1088:3: warning: statement with no effect

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/bio.h