Skip to content

Commit 71b1ae4

Browse files
sjg20trini
authored andcommitted
bootstd: Add stub for bootdev_setup_for_sibling_blk()
When bootstd is not enabled, bootdevs should not be set up. Add a static inline function to see to this. Signed-off-by: Simon Glass <sjg@chromium.org>
1 parent 99344c8 commit 71b1ae4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

include/bootdev.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ int bootdev_next_prio(struct bootflow_iter *iter, struct udevice **devp);
395395
*/
396396
int bootdev_setup_for_dev(struct udevice *parent, const char *drv_name);
397397

398+
#if CONFIG_IS_ENABLED(BOOTSTD)
398399
/**
399400
* bootdev_setup_for_sibling_blk() - Bind a new bootdev device for a blk device
400401
*
@@ -409,6 +410,13 @@ int bootdev_setup_for_dev(struct udevice *parent, const char *drv_name);
409410
* Return: 0 if OK, -ve on error
410411
*/
411412
int bootdev_setup_for_sibling_blk(struct udevice *blk, const char *drv_name);
413+
#else
414+
static int bootdev_setup_for_sibling_blk(struct udevice *blk,
415+
const char *drv_name)
416+
{
417+
return 0;
418+
}
419+
#endif
412420

413421
/**
414422
* bootdev_get_sibling_blk() - Locate the block device for a bootdev

0 commit comments

Comments
 (0)