summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-11-19 17:09:19 +0100
committerJens Axboe <axboe@kernel.dk>2024-11-19 19:07:13 -0700
commited5db174cf39374215934f21b04639a7a1513023 (patch)
treed0a263becf63023b643390581b95ca2ac1e81ae9 /include/linux/blkdev.h
parent5a9d1b83e5334915c651604648c20a9fc64d47a3 (diff)
block: return unsigned int from queue_dma_alignment
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>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 97c89c0c1398..d8de261c2b99 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -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;
}