Skip to content

Commit da77d9b

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: return bool from blk_rq_aligned
blk_rq_aligned returns a boolean condition, don't mascquerade it as int. 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-5-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent e769489 commit da77d9b

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
@@ -1468,7 +1468,7 @@ blk_lim_dma_alignment_and_pad(struct queue_limits *lim)
14681468
return lim->dma_alignment | lim->dma_pad_mask;
14691469
}
14701470

1471-
static inline int blk_rq_aligned(struct request_queue *q, unsigned long addr,
1471+
static inline bool blk_rq_aligned(struct request_queue *q, unsigned long addr,
14721472
unsigned int len)
14731473
{
14741474
unsigned int alignment = blk_lim_dma_alignment_and_pad(&q->limits);

0 commit comments

Comments
 (0)