Skip to content

Commit e769489

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: return unsigned int from blk_lim_dma_alignment_and_pad
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> 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-4-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent ed5db17 commit e769489

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/blkdev.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,8 @@ static inline bool bdev_iter_is_aligned(struct block_device *bdev,
14621462
bdev_logical_block_size(bdev) - 1);
14631463
}
14641464

1465-
static inline int blk_lim_dma_alignment_and_pad(struct queue_limits *lim)
1465+
static inline unsigned int
1466+
blk_lim_dma_alignment_and_pad(struct queue_limits *lim)
14661467
{
14671468
return lim->dma_alignment | lim->dma_pad_mask;
14681469
}

0 commit comments

Comments
 (0)