Skip to content

Commit 546d191

Browse files
committed
block: make bio_integrity_map_user() static inline
If CONFIG_BLK_DEV_INTEGRITY isn't set, then the dummy helper must be static inline to avoid complaints about the function being unused. Fixes: fe8f4ca ("block: modify bio_integrity_map_user to accept iov_iter as argument") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Jens Axboe <[email protected]>
1 parent 3d8b5a2 commit 546d191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/bio-integrity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static inline void bioset_integrity_free(struct bio_set *bs)
105105
{
106106
}
107107

108-
static int bio_integrity_map_user(struct bio *bio, struct iov_iter *iter)
108+
static inline int bio_integrity_map_user(struct bio *bio, struct iov_iter *iter)
109109
{
110110
return -EINVAL;
111111
}

0 commit comments

Comments
 (0)