Skip to content

Commit 655b9ef

Browse files
Chao Songlrgirdwo
authored andcommitted
zephyr: deprecate zephyr.h and use kernel.h header
The zephyr header zephyr.h should be only used with CONFIG_LEGACY_INCLUDE_PATH, which is deprecate by both Zephyr and SOF. The latest zephyr main will complain if zephyr.h is used but CONFIG_LEGACY_INCLUDE_PATH disabled. This patch deprecates zephyr.h and uses kernel.h instead, so that we don't break with latest zephyr. Signed-off-by: Chao Song <chao.song@linux.intel.com>
1 parent 312c80a commit 655b9ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/zephyr.h>
7+
#include <zephyr/kernel.h>
88

99
#include <zephyr/logging/log.h>
1010
LOG_MODULE_REGISTER(main, LOG_LEVEL_DBG);

src/logging/log_backend_probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <zephyr/logging/log_core.h>
77
#include <zephyr/logging/log_output.h>
88
#include <zephyr/logging/log_backend_std.h>
9-
#include <zephyr/zephyr.h>
9+
#include <zephyr/kernel.h>
1010

1111
#include <sof/audio/buffer.h>
1212
#include <sof/ipc/topology.h>

0 commit comments

Comments
 (0)