From 0c34277ea06bcb7137d1a959c277c2d0fcd928ea Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Mon, 1 May 2023 14:59:23 -0600 Subject: ec: Add #line in include/usb_pd_dpm_sm.h Work around coreboot GCC preprocessor bug. BRANCH=None BUG=b:272518464 TEST=./twister --coverage Change-Id: I3325b2c4579607373765ebb5f992e7fd51d3440d Signed-off-by: Jeremy Bettis Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4497210 Commit-Queue: Al Semjonovs Tested-by: Jeremy Bettis Reviewed-by: Al Semjonovs Auto-Submit: Jeremy Bettis --- include/usb_pd_dpm_sm.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/usb_pd_dpm_sm.h b/include/usb_pd_dpm_sm.h index 5b463c9197..cb275d65e6 100644 --- a/include/usb_pd_dpm_sm.h +++ b/include/usb_pd_dpm_sm.h @@ -8,6 +8,12 @@ * Refer to USB PD 3.0 spec, version 2.0, sections 8.2 and 8.3 */ +/* + * TODO(b/272518464): Work around coreboot GCC preprocessor bug. + * #line marks the *next* line, so it is off by one. + */ +#line 16 + #ifndef __CROS_EC_USB_DPM_H #define __CROS_EC_USB_DPM_H -- cgit v1.2.1