]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: return unsigned int from queue_dma_alignment
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2024 16:09:19 +0000 (17:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 Nov 2024 02:07:13 +0000 (19:07 -0700)
The underlying limit is defined as an unsigned int, so return that from
queue_dma_alignment as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20241119160932.1327864-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blkdev.h

index 97c89c0c1398f50942b30a25e0b858cd31e66097..d8de261c2b99a1dc14b772eceb17b7621180d385 100644 (file)
@@ -1421,7 +1421,7 @@ static inline bool bdev_zone_is_seq(struct block_device *bdev, sector_t sector)
        return is_seq;
 }
 
-static inline int queue_dma_alignment(const struct request_queue *q)
+static inline unsigned int queue_dma_alignment(const struct request_queue *q)
 {
        return q->limits.dma_alignment;
 }