]> git.kernelconcepts.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>
Fri, 7 Oct 2011 06:08:05 +0000 (17:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Oct 2011 06:50:05 +0000 (17:50 +1100)
commit579a9b1edf83c1df3ccc9d4c4fc52ee9af860db7
tree7694dd7c14aa832d99eeaf7bdb50e0ad15e23a1c
parentc7138aea1fcbf02db8f0c4a1b55c5461e4a07461
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@google.com>
include/linux/bio.h