]> 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>
Thu, 3 Nov 2011 05:38:18 +0000 (16:38 +1100)
commit69ee6bec2b65f81648337be11d885bc43007bfd3
tree559b16cea16f13d4d03a36d84b5ecb4098c6996b
parent34d3750810c6885b403cc51d9c1ff25409d626ce
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