Skip to content

Commit

Permalink
zephyr: sof/lib/mm_heap.h added Zephyr version
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kv2019i committed Sep 12, 2024
1 parent 707c0c5 commit aaa3bcc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xtos/include/sof/lib/mm_heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
11 changes: 11 additions & 0 deletions zephyr/include/sof/lib/mm_heap.h
Original file line number Diff line number Diff line change
@@ -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__ */

0 comments on commit aaa3bcc

Please sign in to comment.