Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions scripts/kernel_user_partition.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,26 @@ zephyr/include/sof/lib/vpage.h

# Zephyr headers that only kernel code may include: kernel internals and
# driver APIs that are not system calls.
# Not listed on purpose: zephyr/drivers/dma.h. Its types and constants are
# the arguments of the sof_dma_*() system calls in sof/lib/sof_dma.h, so
# user-space code needs them. User-space code must not call its dma_*()
# driver functions directly, which this include check cannot catch.
[zephyr-kernel-headers]
kernel/include/*
include/zephyr/drivers/dma.h
include/zephyr/pm/device_runtime.h

# User-space sources that still include kernel-only headers, removed one
# by one by the partition work (#11306). With --strict, a leak in any
# other user-space source is an error, so this list must only shrink.
# It covers the CI build configurations and the user-space overlays.
[leak-baseline]
src/audio/asrc/asrc.c
src/audio/chain_dma.c
src/audio/component.c
src/audio/copier/copier.c
src/audio/copier/copier_dai.c
src/audio/copier/copier_gain.c
src/audio/copier/copier_host.c
src/audio/copier/copier_ipcgtw.c
src/audio/dai-zephyr.c
src/audio/data_blob.c
src/audio/host-zephyr.c
src/audio/intel_uaol.c
src/audio/kpb.c
src/audio/module_adapter/iadk/kpb_service.cpp
src/audio/module_adapter/iadk/system_agent.cpp
Expand All @@ -90,17 +88,12 @@ src/audio/pipeline/pipeline-xrun.c
src/audio/volume/volume.c
src/audio/volume/volume_ipc4.c
src/debug/tester/tester_simple_dram_test.c
src/ipc/ipc-common.c
src/ipc/ipc-helper.c
src/ipc/ipc4/dai.c
src/ipc/ipc4/handler-user.c
src/ipc/ipc4/helper.c
src/lib/dai.c
src/lib/dma.c
src/lib/notifier.c
src/samples/audio/detect_test.c
src/schedule/zephyr_domain.c
src/schedule/zephyr_dp_schedule.c
src/schedule/zephyr_dp_schedule_application.c
src/schedule/zephyr_dp_schedule_thread.c
src/schedule/zephyr_ll.c
1 change: 1 addition & 0 deletions src/audio/dai-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <sof/lib/notifier.h>
#include <sof/lib/uuid.h>
#include <sof/lib/dma.h>
#include <sof/lib/memory.h>
#include <sof/list.h>
#include <rtos/spinlock.h>
#include <rtos/string.h>
Expand Down
3 changes: 3 additions & 0 deletions src/include/sof/schedule/ll_schedule_domain.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
#include <rtos/panic.h>
#include <rtos/alloc.h>
#include <sof/lib/cpu.h>
#ifndef __ZEPHYR__
/* for clock_ms_to_ticks() in domain_init() */
#include <rtos/clk.h>
#endif
#include <sof/schedule/ll_schedule.h>
#include <rtos/sof.h>
#include <rtos/spinlock.h>
Expand Down
1 change: 1 addition & 0 deletions src/kernel/audio/base_fw_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <sof/lib/memory.h>
#include <sof/lib_manager.h>
#include <sof/platform.h>

#include <ipc4/base_fw.h>
#include <ipc4/alh.h>
Expand Down
1 change: 1 addition & 0 deletions src/kernel/ipc/ipc3/host-page-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <sof/ipc/driver.h>
#include <rtos/alloc.h>
#include <sof/lib/dma.h>
#include <sof/lib/memory.h>
#include <sof/platform.h>
#include <ipc/stream.h>
#include <ipc/topology.h>
Expand Down
1 change: 1 addition & 0 deletions src/kernel/platform/posix/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright(c) 2022 Google LLC. All rights reserved.
// Author: Andy Ross <andyross@google.com>
#include <sof/ipc/driver.h>
#include <rtos/clk.h>
#include <rtos/task.h>
#include <sof/platform.h>
#include <sof/schedule/edf_schedule.h>
Expand Down
1 change: 0 additions & 1 deletion zephyr/include/rtos/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <zephyr/kernel.h>
#include <sof/lib/cpu.h>
#include <rtos/sof.h>
#include <sof/platform.h>

struct comp_dev;
struct sof_ipc_stream_posn;
Expand Down
2 changes: 2 additions & 0 deletions zephyr/include/sof/lib/dma-legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#ifndef __SOF_LIB_DMA_LEGACY_H__
#define __SOF_LIB_DMA_LEGACY_H__

#include <sof/lib/io.h>

/* DMA attributes */
#define DMA_ATTR_BUFFER_ALIGNMENT 0
#define DMA_ATTR_COPY_ALIGNMENT 1
Expand Down
2 changes: 0 additions & 2 deletions zephyr/include/sof/lib/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include <rtos/atomic.h>
#include <rtos/bit.h>
#include <rtos/alloc.h>
#include <sof/lib/io.h>
#include <sof/lib/memory.h>
#include <rtos/sof.h>
#include <rtos/spinlock.h>
#include <stdbool.h>
Expand Down
1 change: 1 addition & 0 deletions zephyr/lib/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <sof/lib/pm_runtime.h>
#include <sof/platform.h>
#include <sof/audio/pipeline.h>
#include <sof/debug/telemetry/telemetry.h>
#include <sof/schedule/ll_schedule_domain.h> /* for zephyr_ll_user_heap() */
Expand Down
2 changes: 2 additions & 0 deletions zephyr/lib/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ static uint32_t mic_disable_status;
#endif /* CONFIG_INTEL_ADSP_MIC_PRIVACY */
#include <sof/init.h>
#include <sof/lib/cpu.h>
#include <sof/lib/memory.h>
#include <sof/lib/pm_runtime.h>
#include <sof/platform.h>
#include <sof/lib/dai.h>
#include <ipc/topology.h>
#include <module/module/base.h>
Expand Down
3 changes: 2 additions & 1 deletion zephyr/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#include <sof/drivers/interrupt-map.h>
#include <sof/lib/dma.h>
#include <sof/schedule/schedule.h>
#include <platform/lib/memory.h>
#include <sof/lib/io.h>
#include <sof/lib/memory.h>
#include <sof/platform.h>
#include <sof/lib/notifier.h>
#include <sof/lib/pm_runtime.h>
Expand Down
Loading