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 <[email protected]>
  • Loading branch information
marcinszkudlinski authored and tobonex committed Aug 31, 2023
1 parent 39ee86b commit dcc4363
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 @@ -219,17 +219,6 @@ static inline void buffer_stream_writeback(struct comp_buffer *buffer,
if (buffer->is_shared)
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 dcc4363

Please sign in to comment.