linux: Add BDEVNAME_SIZE to blkdev.h

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>
This commit is contained in:
Simon Glass
2025-12-21 12:45:52 -07:00
parent 4c8e3c7b2a
commit ecbce56f94

View File

@@ -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