Sound Open Firmware
Loading...
Searching...
No Matches
preproc.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2024 Intel Corporation.
4 */
5
6#ifndef __SOF_TRACE_PREPROC_H__
7#define __SOF_TRACE_PREPROC_H__
8
9#ifdef CONFIG_TRACE
10#error "SOF dma-trace (CONFIG_TRACE) not supported in Zephyr builds. \
11 Please use CONFIG_ZEPHYR_LOG instead."
12#endif
13
14#ifndef CONFIG_ZEPHYR_LOG
15
16/*
17 * Unlike the XTOS version of this macro, this does not silence all
18 * compiler warnings about unused variables.
19 */
20#define SOF_TRACE_UNUSED(arg1, ...) ((void)arg1)
21
22#endif /* CONFIG_ZEPHYR_LOG */
23
24#endif /* __SOF_TRACE_PREPROC_H__ */