Skip to content

Commit

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

BUG=b:272518464
TEST=BOARD=skyrim ; zmake build --coverage $BOARD &&
./util/find_non_exec_lines.py build/zephyr/$BOARD/output/zephyr.inf

Change-Id: I977e50b33e33cc273244d1a53e6b5792b7eb2a18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5731185
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
  • Loading branch information
jeremybettis authored and Chromeos LUCI committed Jul 24, 2024
1 parent 5dc53b3 commit 7366dfe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

#include <zephyr/kernel.h>
#include <ksched.h>
#include <zephyr/spinlock.h>
Expand Down

0 comments on commit 7366dfe

Please sign in to comment.