aboutsummaryrefslogtreecommitdiff
path: root/include/bcb.h
diff options
context:
space:
mode:
authorMattijs Korpershoek2024-06-03 11:04:58 +0200
committerTom Rini2024-06-13 16:30:48 -0600
commit065ed551e332a0bbd95daf439d4bf636c86ad00f (patch)
tree03af8d111cb32280a52a539e639948ca81605e0e /include/bcb.h
parent822911d574089abc79f7ca141ca0fb82e891968b (diff)
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>
Diffstat (limited to 'include/bcb.h')
-rw-r--r--include/bcb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bcb.h b/include/bcb.h
index 1941d8c28b4..a56b547595a 100644
--- a/include/bcb.h
+++ b/include/bcb.h
@@ -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;
}