Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: fe8f4ca7107e ("block: modify bio_integrity_map_user to accept iov_iter as argument")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411300229.y7h60mDg-lkp@intel.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>

+1 -1
+1 -1
include/linux/bio-integrity.h
··· 105 105 { 106 106 } 107 107 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) 109 109 { 110 110 return -EINVAL; 111 111 }