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:
Kai Vehmanen 2024-09-12 14:09:08 +03:00 committed by Kai Vehmanen
parent d5f9f3771d
commit d98f0d40ed
2 changed files with 15 additions and 0 deletions

View File

@ -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>

View File

@ -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__ */