Skip to content

Commit

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

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

Change-Id: Ibd7de22c840cbbf9e24c6aeb1ebbbb6574655832
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5782398
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Tristan Honscheid <honscheid@google.com>
Commit-Queue: Tristan Honscheid <honscheid@google.com>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
  • Loading branch information
jeremybettis authored and Chromeos LUCI committed Aug 13, 2024
1 parent e54b72a commit 014581f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/sensor/nuvoton/nuvoton_tach_npcx/tach_nuvoton_npcx.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

#define DT_DRV_COMPAT nuvoton_npcx_tach

/**
Expand Down

0 comments on commit 014581f

Please sign in to comment.