summaryrefslogtreecommitdiff
path: root/include/lid_switch.h
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2023-05-16 20:31:08 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-16 21:56:56 +0000
commit318306b3a82aa941abe0a559e87d66009f0663c9 (patch)
tree10c78e38189a75ad832097978a8df91e4b858d17 /include/lid_switch.h
parentcfc740514c3de776534d22673ebf05fe8c906c5b (diff)
downloadchrome-ec-318306b3a82aa941abe0a559e87d66009f0663c9.tar.gz
ec: Add #line in include/lid_switch.h
Work around coreboot GCC preprocessor bug. BUG=b:272518464 TEST=gcc -E Change-Id: Ic95717cab141d76a20d45a16126ac37a8859829e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4540107 Reviewed-by: Al Semjonovs <asemjonovs@google.com> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'include/lid_switch.h')
-rw-r--r--include/lid_switch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/lid_switch.h b/include/lid_switch.h
index 3d639b5782..8b62d89949 100644
--- a/include/lid_switch.h
+++ b/include/lid_switch.h
@@ -5,6 +5,12 @@
/* Lid switch API 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_LID_SWITCH_H
#define __CROS_EC_LID_SWITCH_H