diff --git a/lib/bdev/bdev.c b/lib/bdev/bdev.c index 9c53877d2..f0d960a2c 100644 --- a/lib/bdev/bdev.c +++ b/lib/bdev/bdev.c @@ -1638,7 +1638,10 @@ _spdk_bdev_io_split(struct spdk_io_channel *ch, struct spdk_bdev_io *bdev_io) _spdk_bdev_io_split_with_payload(bdev_io); } -static void +/* Explicitly mark this inline, since it's used as a function pointer and otherwise won't + * be inlined, at least on some compilers. + */ +static inline void _spdk_bdev_io_submit(void *ctx) { struct spdk_bdev_io *bdev_io = ctx;