diff options
author | Jeremy Bettis <jbettis@google.com> | 2023-04-21 22:31:39 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-22 00:15:50 +0000 |
commit | cb17c1f2ebda53716a7bef905adb33e7fe0f7bc1 (patch) | |
tree | ec0b59ed5990e3df2cd32c6a0a45d1df5c900d65 | |
parent | 568f7e5107ba04a0e3d975b1e9e98d9ee507aab4 (diff) | |
download | chrome-ec-cb17c1f2ebda53716a7bef905adb33e7fe0f7bc1.tar.gz |
ec: Add another #line directive for usb_common.c
To workaround pre-processor glitch in common/usb_common.c add a #line
directive.
BRANCH=None
BUG=b:272518464
TEST=make -j$(nproc) -C zephyr -f Makefile.cq twister_host COVERAGE=y
TEST=./util/find_non_exec_lines.py twister-out-host/coverage.info
Change-Id: I43216871dc2998cd89c945871b15f012ced97bf8
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4461055
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r-- | common/usb_common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/usb_common.c b/common/usb_common.c index 32d9d82e74..429bc8be8b 100644 --- a/common/usb_common.c +++ b/common/usb_common.c @@ -35,6 +35,12 @@ #include "usbc_ppc.h" #include "util.h" +/* + * TODO(b/272518464): Work around coreboot GCC preprocessor bug. + * #line marks the *next* line, so it is off by one. + */ +#line 43 + #ifdef CONFIG_COMMON_RUNTIME #define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args) #define CPRINTF(format, args...) cprintf(CC_USBPD, format, ##args) |