summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2023-04-19 18:18:34 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-19 20:17:02 +0000
commit9819b0c34f7eb736460578c9973c4f6374a5c6a2 (patch)
treec149f6df974a1c3e2f9d268ac6fba3fb6650b406
parentf91109844b87f2941fdfe028a13d952789c84ede (diff)
downloadchrome-ec-9819b0c34f7eb736460578c9973c4f6374a5c6a2.tar.gz
ec: Add another #line directive
To workaround pre-processor glitch in motion_lid.c add a #line directive. BRANCH=None BUG=b:272518464 TEST=zmake build --coverage -a && \ ./util/find_non_exec_lines.py build/zephyr/all_builds.info Change-Id: I6e35ec1eb2ad4b90e09b082bb3439b4910fecf94 Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4447188 Reviewed-by: Al Semjonovs <asemjonovs@google.com> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Al Semjonovs <asemjonovs@google.com>
-rw-r--r--include/host_command.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h
index f54244b571..3de47c37ce 100644
--- a/include/host_command.h
+++ b/include/host_command.h
@@ -5,6 +5,12 @@
/* Host command module for Chrome EC */
+/*
+ * TODO(b/272518464): Work around coreboot GCC preprocessor bug.
+ * #line marks the *next* line, so it is off by one.
+ */
+#line 13
+
#ifndef __CROS_EC_HOST_COMMAND_H
#define __CROS_EC_HOST_COMMAND_H