summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-11-19 17:09:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-18 13:55:21 +0100
commit49278ca55ccf08c44370c20ccafe8bfd11f4af9c (patch)
tree138812f3f6e4d533276c3b5573d1c00b9f304440
parent3baeec23a82e7ee9691f434c6ab0ab1387326108 (diff)
downloadlinux-49278ca55ccf08c44370c20ccafe8bfd11f4af9c.tar.gz
linux-49278ca55ccf08c44370c20ccafe8bfd11f4af9c.tar.bz2
linux-49278ca55ccf08c44370c20ccafe8bfd11f4af9c.zip
block: return unsigned int from queue_dma_alignment
[ Upstream commit ed5db174cf39374215934f21b04639a7a1513023 ] 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> Stable-dep-of: 2c38ec934ddf ("block: fix cached zone reports on devices with native zone append") Signed-off-by: Sasha Levin <sashal@kernel.org>
-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 cd9c97f6f948..11d0a1b8daa2 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1450,7 +1450,7 @@ static inline bool bdev_is_zone_start(struct block_device *bdev,
int blk_zone_issue_zeroout(struct block_device *bdev, sector_t sector,
sector_t nr_sects, gfp_t gfp_mask);
-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;
}