]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: bcb: Fix bcb compilation when CONFIG_CMD_BCB=n
authorMattijs Korpershoek <mkorpershoek@baylibre.com>
Mon, 3 Jun 2024 09:04:58 +0000 (11:04 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 13 Jun 2024 22:30:48 +0000 (16:30 -0600)
commit065ed551e332a0bbd95daf439d4bf636c86ad00f
tree03af8d111cb32280a52a539e639948ca81605e0e
parent822911d574089abc79f7ca141ca0fb82e891968b
cmd: bcb: Fix bcb compilation when CONFIG_CMD_BCB=n

commit dfeb4f0d7935 ("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: dfeb4f0d7935 ("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>
include/bcb.h