Skip to content

Commit

Permalink
CHROMIUM: Add #line to atomic.h & wait_q.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
TEST=BOARD=craaskov ; zmake build -c $BOARD && ./util/find_non_exec_lines.py build/zephyr/$BOARD/output/zephyr.info

Change-Id: I82183e96420cde1d2aee662549444c1f406e5169
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5770955
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Commit-Queue: Tristan Honscheid <honscheid@google.com>
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
  • Loading branch information
jeremybettis authored and Chromeos LUCI committed Aug 9, 2024
1 parent 68a0038 commit 4afdc8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/zephyr/sys/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <zephyr/types.h>
#include <zephyr/sys/util.h>

#line 27

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
2 changes: 2 additions & 0 deletions kernel/include/wait_q.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <timeout_q.h>
#include <priority_q.h>

#line 25

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 4afdc8a

Please sign in to comment.