Skip to content

Commit

Permalink
buf: remove buffer_acquire/buffer_release
Browse files Browse the repository at this point in the history
buffer_acquire and buffer_release are no longer in use
remove stubs from the code

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
  • Loading branch information
marcinszkudlinski committed Sep 1, 2023
1 parent 706150b commit de3f292
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/include/sof/audio/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,17 +220,6 @@ static inline void buffer_stream_writeback(struct comp_buffer *buffer,
audio_stream_writeback(&buffer->stream, bytes);
}

/* stubs for acquire/release for compilation, to be removed at last step */
__must_check static inline struct comp_buffer __sparse_cache *buffer_acquire(
struct comp_buffer *buffer)
{
return (struct comp_buffer __sparse_cache *)buffer;
}

static inline void buffer_release(struct comp_buffer __sparse_cache *buffer)
{
(void)buffer;
}

/*
* Attach a new buffer at the beginning of the list. Note, that "head" must
Expand Down

0 comments on commit de3f292

Please sign in to comment.