]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
block: make bio_integrity_map_user() static inline
authorJens Axboe <axboe@kernel.dk>
Fri, 29 Nov 2024 22:53:58 +0000 (15:53 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Dec 2024 15:19:09 +0000 (08:19 -0700)
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>
include/linux/bio-integrity.h

index de0a6c9de4d10a58551b791034a3318b5a51e639..802f52e38efd5bba59b122e338ffd72785fd1753 100644 (file)
@@ -105,7 +105,7 @@ static inline void bioset_integrity_free(struct bio_set *bs)
 {
 }
 
-static int bio_integrity_map_user(struct bio *bio, struct iov_iter *iter)
+static inline int bio_integrity_map_user(struct bio *bio, struct iov_iter *iter)
 {
        return -EINVAL;
 }