Skip to content

Commit

Permalink
CHROMIUM: Add #line to i/zephyr/logging/log_core.h
Browse files Browse the repository at this point in the history
Work around coreboot GCC preprocessor bug.

BUG=b:272518464
TEST=BOARD=uldren ; zmake build -c $BOARD &&
./util/find_non_exec_lines.py build/zephyr/$BOARD/output/zephyr.info

Change-Id: I105498e851b5f6a8d93525a1bf602f428aebe183
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5570624
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
  • Loading branch information
jeremybettis authored and Chromeos LUCI committed May 29, 2024
1 parent 2b5019c commit 3e43586
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/zephyr/logging/log_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_CORE_H_
#define ZEPHYR_INCLUDE_LOGGING_LOG_CORE_H_

Expand Down

0 comments on commit 3e43586

Please sign in to comment.