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, 16 Dec 2024 13:58:15 +0000 (06:58 -0700)
commit8d9ef9f8f369424c1633e745c48f95641b375e13
treed3cdb4121670804909a30deeb32ef6b815f1c6a7
parent42a36fa93430e723db8c7ad28b15390e9f39957c
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: a6a9b9eb7a31 ("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