22 Dec
2025
22 Dec
'25
11:56 a.m.
From: Simon Glass <simon.glass@canonical.com> Add BDEVNAME_SIZE definition to blkdev.h, matching the Linux kernel header location for this constant. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- include/linux/blkdev.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 1a8851c4b4c..92878b01c3e 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -12,6 +12,9 @@ struct block_device; struct gendisk; +/* Largest string for a blockdev identifier */ +#define BDEVNAME_SIZE 32 + /* Block size helpers */ #define bdev_logical_block_size(bdev) 512 -- 2.43.0