From b6e08b63154cd9370f5206b7a3f928b44c31478d Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Wed, 12 Oct 2022 18:00:30 -0600 Subject: ec: Add #line directive to fix odd coverage. Sometimes we get coverage reports where it appears that the coverage data is all shifted off by one line, leaving many comments and blank lines uncovered. For example see http://goto.google.com/cros-ec-coverage/firmware-zephyr-cov-postsubmit/R108-15179.0.0-72225-8800548096768350721/lcov_rpt/common/keyboard_scan.c.gcov.html In looking at that example, I discovered that for brya, in ro only, when looking at the preprocessor output, the lines get shifted. BRANCH=None BUG=b:253131248 TEST=So many gcc -E runs Signed-off-by: Jeremy Bettis Change-Id: I6e852548cb954ed3ee3c47088ed275bc32892753 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3949582 Code-Coverage: Zoss Reviewed-by: Al Semjonovs Tested-by: Jeremy Bettis Auto-Submit: Jeremy Bettis Commit-Queue: Al Semjonovs --- include/chipset.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/chipset.h b/include/chipset.h index a3b3a94206..54c325639a 100644 --- a/include/chipset.h +++ b/include/chipset.h @@ -28,6 +28,7 @@ * approximating this state?" and not "Tell me what state the chipset is in and * I'll compare it myself with the state(s) I want." */ +#line 31 /* The comment above some how confuses the preprocessor. */ enum chipset_state_mask { CHIPSET_STATE_HARD_OFF = 0x01, /* Hard off (G3) */ CHIPSET_STATE_SOFT_OFF = 0x02, /* Soft off (S5, S4) */ -- cgit v1.2.1