Skip to content

Commit

Permalink
te nie mogą być
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinszkudlinski committed Sep 1, 2023
1 parent dcc4363 commit 7e92994
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/audio/module_adapter/module_adapter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions src/include/sof/coherent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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. */
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7e92994

Please sign in to comment.