summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2020-12-14 17:24:55 -0700
committerCommit Bot <commit-bot@chromium.org>2020-12-21 17:04:29 +0000
commitf47869436a11aab33e12c469b5fbe6a3eaf7b38c (patch)
tree7ca5c1b838553e62ab458361c4e002cdde635280
parent1c6f4544d22a8b41859f02dbc1c1c4b1edd08f4f (diff)
downloadchrome-ec-f47869436a11aab33e12c469b5fbe6a3eaf7b38c.tar.gz
zephyr: clear a few compiler warnings
BUG=b:174871569 BRANCH=none TEST=compile, observe less warnings Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Id45ebc740344ec9261e28454a966e22a1cd6f629 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2591788 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2600004
-rw-r--r--common/cbi.c2
-rw-r--r--zephyr/shim/src/espi.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/common/cbi.c b/common/cbi.c
index 02f154e8ee..6c98e610ec 100644
--- a/common/cbi.c
+++ b/common/cbi.c
@@ -434,7 +434,7 @@ static void dump_flash(void)
static void print_tag(const char * const tag, int rv, const uint32_t *val)
{
- ccprintf(tag);
+ ccprintf("%s", tag);
if (rv == EC_SUCCESS && val)
ccprintf(": %u (0x%x)\n", *val, *val);
else
diff --git a/zephyr/shim/src/espi.c b/zephyr/shim/src/espi.c
index 4117f43daa..78bbd86bee 100644
--- a/zephyr/shim/src/espi.c
+++ b/zephyr/shim/src/espi.c
@@ -16,6 +16,7 @@
#include "espi.h"
#include "lpc.h"
#include "port80.h"
+#include "power.h"
#include "zephyr_espi_shim.h"
LOG_MODULE_REGISTER(espi_shim, CONFIG_ESPI_LOG_LEVEL);