mirror of https://github.com/thesofproject/sof.git
zephyr: sof/lib/mm_heap.h added Zephyr version
Definitions of mm_heap.h interface are not needed in Zephyr builds. To avoid pulling in XTOS definitions when building with CONFIG_SOF_ZEPHYR_STRICT_HEADERS=n, add a no-op version for Zephyr. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
This commit is contained in:
parent
d5f9f3771d
commit
d98f0d40ed
|
@ -9,6 +9,10 @@
|
|||
#ifndef __SOF_LIB_MM_HEAP_H__
|
||||
#define __SOF_LIB_MM_HEAP_H__
|
||||
|
||||
#ifdef __ZEPHYR__
|
||||
#error "Please use zephyr/include/sof/lib/mm_heap.h instead"
|
||||
#endif
|
||||
|
||||
#include <sof/common.h>
|
||||
#include <rtos/alloc.h>
|
||||
#include <rtos/cache.h>
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
/* SPDX-License-Identifier: BSD-3-Clause
|
||||
*
|
||||
* Copyright(c) 2024 Intel Corporation.
|
||||
*/
|
||||
|
||||
#ifndef __SOF_LIB_MM_HEAP_H__
|
||||
#define __SOF_LIB_MM_HEAP_H__
|
||||
|
||||
/* no-op on Zephyr */
|
||||
|
||||
#endif /* __SOF_LIB_MM_HEAP_H__ */
|
Loading…
Reference in New Issue