Skip to content

Commit

Permalink
loadable: MODULE_PRIVAT
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdobrowolski committed Jan 11, 2024
1 parent db9e1c2 commit d57c647
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 16 deletions.
3 changes: 2 additions & 1 deletion posix/include/rtos/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@

#include <rtos/bit.h>
#include <rtos/string.h>
#ifndef MODULE_PRIVAT
#include <sof/trace/trace.h>
#include <user/trace.h>

#endif
#include <stddef.h>
#include <stdint.h>

Expand Down
3 changes: 2 additions & 1 deletion posix/include/rtos/idc.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@

#ifndef __POSIX_RTOS_IDC_H__
#define __POSIX_RTOS_IDC_H__

#ifndef MODULE_PRIVAT
#include <arch/drivers/idc.h>
#include <platform/drivers/idc.h>
#include <rtos/task.h>
#include <sof/trace/trace.h>
#include <user/trace.h>
#endif
#include <stdint.h>
#include <rtos/cache.h>

Expand Down
8 changes: 6 additions & 2 deletions src/audio/up_down_mixer/up_down_mixer.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@

#ifndef __SOF_AUDIO_UP_DOWN_MIXER_H__
#define __SOF_AUDIO_UP_DOWN_MIXER_H__

#ifndef MODULE_PRIVAT
#include <sof/audio/component_ext.h>
#include <sof/audio/ipc-config.h>
#include <sof/common.h>
#endif
#include <sof/audio/ipc-config.h>

#include <ipc/stream.h>
#ifndef MODULE_PRIVAT
#include <ipc4/module.h>
#endif
#include <ipc4/base-config.h>
#include <stddef.h>
#include <stdint.h>
Expand Down
3 changes: 2 additions & 1 deletion src/include/module/audio/sink_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

#ifndef __MODULE_AUDIO_SINK_API_H__
#define __MODULE_AUDIO_SINK_API_H__

#ifndef MODULE_PRIVAT
#include <errno.h>
#endif
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
Expand Down
3 changes: 2 additions & 1 deletion src/include/module/audio/source_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

#ifndef __MODULE_AUDIO_SOURCE_API_H__
#define __MODULE_AUDIO_SOURCE_API_H__

#ifndef MODULE_PRIVAT
#include <errno.h>
#endif
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
Expand Down
2 changes: 1 addition & 1 deletion src/include/sof/audio/dp_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#ifndef MODULE_PRIVAT
#include <sof/audio/audio_stream.h>
#include <rtos/bit.h>
#endif
#include <sof/common.h>
#include <ipc/topology.h>
#include <sof/coherent.h>
#endif
/**
* DP queue is a lockless circular buffer
* providing safe consumer/producer cached operations cross cores
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
#define NATIVE_SYSTEM_SERVICE_H

#include <stdint.h>

#ifndef MODULE_PRIVAT
#include "logger.h"
#endif
#include "adsp_stddef.h"
#include <module/iadk/adsp_error_code.h>

Expand Down
1 change: 0 additions & 1 deletion src/include/sof/coherent.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

#include <rtos/spinlock.h>
#include <sof/list.h>
#include <sof/lib/memory.h>
Expand Down
3 changes: 2 additions & 1 deletion src/include/sof/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
#define ALIGN_UP_INTERNAL(val, align) (((val) + (align) - 1) & ~((align) - 1))

#if !defined(__ASSEMBLER__) && defined(__XTENSA__)

#ifndef MODULE_PRIVAT
#include <ipc/trace.h>
#include <rtos/panic.h>
#endif
#define VERIFY_ALIGN

#endif
Expand Down
2 changes: 2 additions & 0 deletions src/platform/library/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@

/* prioritize definitions in Zephyr SoC layer */
#ifdef __ZEPHYR__
#ifndef MODULE_PRIVAT
#include <adsp_memory.h>
#endif
#endif

struct sof;

Expand Down
4 changes: 2 additions & 2 deletions xtos/include/sof/compiler_attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
*/

#ifdef __ZEPHYR__

#ifndef MODULE_PRIVAT
#include <zephyr/toolchain.h>

/* Get __sparse_cache and __sparse_force definitions if __CHECKER__ is defined */
#include <zephyr/debug/sparse.h>

#endif
#else

#define __sparse_cache
Expand Down
4 changes: 2 additions & 2 deletions zephyr/include/rtos/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

#ifndef __ZEPHYR_RTOS_SPINLOCK_H__
#define __ZEPHYR_RTOS_SPINLOCK_H__

#ifndef MODULE_PRIVAT
#include <zephyr/kernel.h>
#include <zephyr/spinlock.h>

#endif
/* not implemented on Zephyr, but used within SOF */
static inline void k_spinlock_init(struct k_spinlock *lock)
{
Expand Down
4 changes: 2 additions & 2 deletions zephyr/include/sof/lib/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#if !defined(__ASSEMBLER__) && !defined(LINKER)

#include <stdbool.h>

#ifndef MODULE_PRIVAT
#include <zephyr/arch/arch_inlines.h>

#endif
#if CONFIG_PM

#include <zephyr/pm/pm.h>
Expand Down

0 comments on commit d57c647

Please sign in to comment.