mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
cmd: bcb: Fix bcb compilation when CONFIG_CMD_BCB=n
commitdfeb4f0d79
("cmd: bcb: extend BCB C API to allow read/write the fields") introduced the bcb_get() function. When CONFIG_CMD_BCB=n, that function is stubbed. The stubbed function has a wrong prototype: value_size arg is missing. Add the missing argument to fix build when CONFIG_CMD_BCB=n. Fixes:dfeb4f0d79
("cmd: bcb: extend BCB C API to allow read/write the fields") Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Reviewed-by: Guillaume La Roque <glaroque@baylibre.com> Reviewed-by: Dmitrii Merkurev <dimorinny@google.com> Reviewed-by: Julien Masson <jmasson@baylibre.com>
This commit is contained in:
parent
822911d574
commit
065ed551e3
1 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,8 @@ static inline int bcb_set(enum bcb_field field, const char *value)
|
|||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
static inline int bcb_get(enum bcb_field field, char *value_out)
|
||||
static inline int bcb_get(enum bcb_field field,
|
||||
char *value_out, size_t value_size)
|
||||
{
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue