Skip to content

Commit

Permalink
CHROMIUM: Add #line to queue.c, thread.c
Browse files Browse the repository at this point in the history
Work around coreboot GCC preprocessor bug.

BUG=b:272518464
TEST=BOARD=rex-ish-ec ; zmake build --coverage $BOARD &&
./util/find_non_exec_lines.py build/zephyr/$BOARD/output/zephyr.info

Change-Id: I08c0459e2544f5e7ad9bf39ac8edd355810ac72b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5664561
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
  • Loading branch information
jeremybettis authored and Chromeos LUCI committed Jun 27, 2024
1 parent a44dac8 commit 42e063a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel/queue.c
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

/**
* @file
*
Expand Down
6 changes: 6 additions & 0 deletions kernel/thread.c
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

/**
* @file
* @brief Kernel thread support
Expand Down

0 comments on commit 42e063a

Please sign in to comment.