From 55d9767eb9c2eb85e315f1534b59b8bb53c56e58 Mon Sep 17 00:00:00 2001 From: Marcin Szkudlinski Date: Fri, 1 Sep 2023 09:40:36 +0200 Subject: [PATCH] =?UTF-8?q?te=20nie=20mog=C4=85=20by=C4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/audio/module_adapter/module_adapter.c | 2 +- src/include/sof/coherent.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/audio/module_adapter/module_adapter.c b/src/audio/module_adapter/module_adapter.c index 08aec50bcb3f..b2f98d224c63 100644 --- a/src/audio/module_adapter/module_adapter.c +++ b/src/audio/module_adapter/module_adapter.c @@ -1686,7 +1686,7 @@ int module_adapter_bind(struct comp_dev *dev, void *data) int module_adapter_unbind(struct comp_dev *dev, void *data) { - struct module_source_info *mod_source_info; + struct module_source_info __sparse_cache *mod_source_info; struct processing_module *mod = comp_get_drvdata(dev); struct ipc4_module_bind_unbind *bu; struct comp_dev *source_dev; diff --git a/src/include/sof/coherent.h b/src/include/sof/coherent.h index c86def55c1fb..2b336d3aaa5e 100644 --- a/src/include/sof/coherent.h +++ b/src/include/sof/coherent.h @@ -202,10 +202,10 @@ static inline void __coherent_shared(struct coherent *c, const size_t size) #ifdef __ZEPHYR__ -__must_check static inline struct coherent *coherent_acquire_thread( +__must_check static inline struct coherent __sparse_cache *coherent_acquire_thread( struct coherent *c, const size_t size) { - struct coherent *cc = uncache_to_cache(c); + struct coherent __sparse_cache *cc = uncache_to_cache(c); /* assert if someone passes a cache/local address in here. */ ADDR_IS_COHERENT(c); @@ -226,7 +226,7 @@ __must_check static inline struct coherent *coherent_acquire_thread( return cc; } -static inline void coherent_release_thread(struct coherent *c, +static inline void coherent_release_thread(struct coherent __sparse_cache *c, const size_t size) { /* assert if someone passes a coherent address in here. */ @@ -384,10 +384,10 @@ __must_check static inline struct coherent __sparse_cache *coherent_acquire_thre dcache_invalidate_region(cc, size); } - return c; + return (__sparse_force struct coherent __sparse_cache *)c; } -static inline void coherent_release_thread(struct coherent *c, +static inline void coherent_release_thread(struct coherent __sparse_cache *c, const size_t size) { if (c->shared) {