From 47123e6aa9982b334c19f0882a428b3347bcb804 Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Fri, 24 May 2024 10:31:25 -0600 Subject: [PATCH] CHROMIUM: Add #line to i/zephyr/logging/log_msg.h Work around coreboot GCC preprocessor bug. BUG=b:272518464 TEST=./twister -c -C --toolchain host Change-Id: I4ad9f4f6da9c4d04fdbaabee40902497dbfdc19d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5570620 Commit-Queue: Aaron Massey Commit-Queue: Jeremy Bettis Auto-Submit: Jeremy Bettis Reviewed-by: Aaron Massey Tested-by: Jeremy Bettis --- include/zephyr/logging/log_msg.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/zephyr/logging/log_msg.h b/include/zephyr/logging/log_msg.h index 4beb20ea03a..c7b88005350 100644 --- a/include/zephyr/logging/log_msg.h +++ b/include/zephyr/logging/log_msg.h @@ -4,6 +4,12 @@ * 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_ @@ -24,6 +30,12 @@ #include #endif +/* + * TODO(b/272518464): Work around coreboot GCC preprocessor bug. + * #line marks the *next* line, so it is off by one. + */ +#line 38 + #ifdef __cplusplus extern "C" { #endif