]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
block: also return bio_integrity_payload * from stubs
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Jul 2024 15:10:20 +0000 (17:10 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Jul 2024 16:21:16 +0000 (10:21 -0600)
struct bio_integrity_payload is defined unconditionally. No need to
return void * from bio_integrity() and bio_integrity_alloc().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240702151047.1746127-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bio-integrity.h

index 70ef19a0dc7e8bfeec1d0090dc111174d22d98f1..cac24dac06fff0ae46a05332b1ecf98d1f03d781 100644 (file)
@@ -85,7 +85,7 @@ void bio_integrity_init(void);
 
 #else /* CONFIG_BLK_DEV_INTEGRITY */
 
-static inline void *bio_integrity(struct bio *bio)
+static inline struct bio_integrity_payload *bio_integrity(struct bio *bio)
 {
        return NULL;
 }
@@ -138,8 +138,8 @@ static inline bool bio_integrity_flagged(struct bio *bio, enum bip_flags flag)
        return false;
 }
 
-static inline void *bio_integrity_alloc(struct bio *bio, gfp_t gfp,
-               unsigned int nr)
+static inline struct bio_integrity_payload *
+bio_integrity_alloc(struct bio *bio, gfp_t gfp, unsigned int nr)
 {
        return ERR_PTR(-EINVAL);
 }