From f6a9ded8186743e5daa00d6ce37f63380f58bde5 Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Fri, 2 Feb 2024 22:50:33 +0000 Subject: [PATCH] CHROMIUM: Add #line to i/zephyr/logging/log_msg.h Work around coreboot GCC preprocessor bug. BUG=b:272518464 TEST=./twister --clobber-output -v -i --no-upload-cros-rdb \ --toolchain host --coverage --coverage-formats=lcov && \ ./util/find_non_exec_lines.py twister-out/coverage.info Change-Id: I9826adb9af04419e20c235d315a40d623e98e997 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5262986 Tested-by: Jeremy Bettis Commit-Queue: Tristan Honscheid Auto-Submit: Jeremy Bettis Commit-Queue: Jeremy Bettis Reviewed-by: Tristan Honscheid --- include/zephyr/logging/log_msg.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/zephyr/logging/log_msg.h b/include/zephyr/logging/log_msg.h index 39cbf1cedbc..5eb1f4897e6 100644 --- a/include/zephyr/logging/log_msg.h +++ b/include/zephyr/logging/log_msg.h @@ -3,6 +3,13 @@ * * SPDX-License-Identifier: Apache-2.0 */ + +/* + * TODO(b/272518464): Work around coreboot GCC preprocessor bug. + * #line marks the *next* line, so it is off by one. + */ +#line 12 + #ifndef ZEPHYR_INCLUDE_LOGGING_LOG_MSG_H_ #define ZEPHYR_INCLUDE_LOGGING_LOG_MSG_H_