Skip to content

Commit fae6bca

Browse files
lrgirdwokv2019i
authored andcommitted
modules: generic: fix build dependecy for fast_get()
Userspace can be built without fast_get(). Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent f6d9e43 commit fae6bca

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/audio/module_adapter/module/generic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ EXPORT_SYMBOL(z_impl_mod_free);
413413

414414
#ifdef CONFIG_USERSPACE
415415
#include <zephyr/internal/syscall_handler.h>
416+
417+
#if CONFIG_FAST_GET
416418
const void *z_vrfy_mod_fast_get(struct processing_module *mod, const void * const dram_ptr,
417419
size_t size)
418420
{
@@ -425,6 +427,7 @@ const void *z_vrfy_mod_fast_get(struct processing_module *mod, const void * cons
425427
return z_impl_mod_fast_get(mod, dram_ptr, size);
426428
}
427429
#include <zephyr/syscalls/mod_fast_get_mrsh.c>
430+
#endif
428431

429432
void *z_vrfy_mod_alloc_ext(struct processing_module *mod, uint32_t flags, size_t size,
430433
size_t alignment)

0 commit comments

Comments
 (0)