summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2023-03-10 15:57:39 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-14 18:03:59 +0000
commita850d691cb80c27ea33de7a3f366134d27a88a4a (patch)
tree06751f089af312acf123dc39eb7aeb7515f7b66a
parentafee141c42f1ccccac84042e8dacaa460b381cd1 (diff)
downloadchrome-ec-a850d691cb80c27ea33de7a3f366134d27a88a4a.tar.gz
ec: Add yet more #line directives
There are more files that are reporting incorrect coverage due to the gcc preprocessor getting off by a line. BRANCH=None BUG=b:272518464 TEST=Ran coverage build Change-Id: I8b0fa21702c7fd3611c57af68b59ea70f605861f Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4334214 Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--driver/accel_bma4xx.c6
-rw-r--r--include/chipset.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/driver/accel_bma4xx.c b/driver/accel_bma4xx.c
index 2dbeea5e75..345916dd36 100644
--- a/driver/accel_bma4xx.c
+++ b/driver/accel_bma4xx.c
@@ -23,6 +23,12 @@
#include <motion_sense_fifo.h>
+/*
+ * TODO(b/272518464): Work around coreboot GCC preprocessor bug.
+ * #line marks the *next* line, so it is off by one.
+ */
+#line 31
+
#ifdef CONFIG_ACCEL_BMA4XX_INT_EVENT
#define BMA4XX_USE_INTERRUPTS
#endif
diff --git a/include/chipset.h b/include/chipset.h
index ead2a9680e..2ec7d3b059 100644
--- a/include/chipset.h
+++ b/include/chipset.h
@@ -10,6 +10,12 @@
* all main chipsets (x86, gaia, etc.).
*/
+/*
+ * TODO(b/272518464): Work around coreboot GCC preprocessor bug.
+ * #line marks the *next* line, so it is off by one.
+ */
+#line 18
+
#ifndef __CROS_EC_CHIPSET_H
#define __CROS_EC_CHIPSET_H