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>
22 lines
418 B
C
22 lines
418 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Block device definitions
|
|
*
|
|
* Minimal version for U-Boot ext4l - based on Linux 6.18
|
|
*/
|
|
#ifndef _LINUX_BLKDEV_H
|
|
#define _LINUX_BLKDEV_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
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
|
|
|
|
#endif /* _LINUX_BLKDEV_H */
|