Message ID | 20240819000502.2275929-1-david.hunter.linux@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [5.15.y] block: use "unsigned long" for blk_validate_block_size(). | expand |
Link to version 2: https://lore.kernel.org/all/20240819002324.2284362-1-david.hunter.linux@gmail.com/
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 905844172cfd..c6d57814988d 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -235,7 +235,7 @@ struct request { void *end_io_data; }; -static inline int blk_validate_block_size(unsigned int bsize) +static inline int blk_validate_block_size(unsigned long bsize) { if (bsize < 512 || bsize > PAGE_SIZE || !is_power_of_2(bsize)) return -EINVAL;