Skip to content

Commit ed5db17

Browse files
Christoph Hellwigaxboe
authored andcommitted
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>
1 parent 5a9d1b8 commit ed5db17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/blkdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ static inline bool bdev_zone_is_seq(struct block_device *bdev, sector_t sector)
14211421
return is_seq;
14221422
}
14231423

1424-
static inline int queue_dma_alignment(const struct request_queue *q)
1424+
static inline unsigned int queue_dma_alignment(const struct request_queue *q)
14251425
{
14261426
return q->limits.dma_alignment;
14271427
}

0 commit comments

Comments
 (0)