From b147ebb2d49dfb357323bdbaaf9a80ff5327da48 Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Wed, 19 Apr 2023 20:15:19 +0000 Subject: ec: Add another #line directive To workaround pre-processor glitch in keyboard_raw.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: Iee4c642d8a35ec00d3e3efb97a7b10ae56806f58 Signed-off-by: Jeremy Bettis Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4450228 Reviewed-by: Al Semjonovs Auto-Submit: Jeremy Bettis Commit-Queue: Al Semjonovs Tested-by: Jeremy Bettis --- zephyr/include/drivers/cros_kb_raw.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zephyr/include/drivers/cros_kb_raw.h b/zephyr/include/drivers/cros_kb_raw.h index 7b9255bb9f..ba1434fb04 100644 --- a/zephyr/include/drivers/cros_kb_raw.h +++ b/zephyr/include/drivers/cros_kb_raw.h @@ -19,6 +19,12 @@ * the Zephyr kscan API. */ +/* + * TODO(b/272518464): Work around coreboot GCC preprocessor bug. + * #line marks the *next* line, so it is off by one. + */ +#line 27 + #ifndef ZEPHYR_INCLUDE_DRIVERS_CROS_KB_RAW_H_ #define ZEPHYR_INCLUDE_DRIVERS_CROS_KB_RAW_H_ -- cgit v1.2.1