diff mbox series

[3/6] block: return unsigned int from blk_lim_dma_alignment_and_pad

Message ID 20241119160932.1327864-4-hch@lst.de (mailing list archive)
State New
Headers show
Series [1/6] block: return unsigned int from bdev_io_opt | expand

Commit Message

Christoph Hellwig Nov. 19, 2024, 4:09 p.m. UTC
The underlying limits are defined as unsigned int, so return that from
blk_lim_dma_alignment_and_pad as well.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 include/linux/blkdev.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

John Garry Nov. 19, 2024, 4:29 p.m. UTC | #1
On 19/11/2024 16:09, Christoph Hellwig wrote:
> The underlying limits are defined as unsigned int, so return that from
> blk_lim_dma_alignment_and_pad as well.
> 
> Signed-off-by: Christoph Hellwig<hch@lst.de>

Reviewed-by: John Garry <john.g.garry@oracle.com>
diff mbox series

Patch

diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index d1a6f4bc4a1c..74e3c611a4f7 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -1458,7 +1458,8 @@  static inline bool bdev_iter_is_aligned(struct block_device *bdev,
 				   bdev_logical_block_size(bdev) - 1);
 }
 
-static inline int blk_lim_dma_alignment_and_pad(struct queue_limits *lim)
+static inline unsigned int
+blk_lim_dma_alignment_and_pad(struct queue_limits *lim)
 {
 	return lim->dma_alignment | lim->dma_pad_mask;
 }