Skip to content

Commit 51ef2db

Browse files
jajanusztlauda
authored andcommitted
test: fix kpb compilation with -Werror
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
1 parent cfc7864 commit 51ef2db

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/include/sof/audio/kpb.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,8 @@ struct comp_data {
131131
struct comp_buffer *rt_sink; /**< real time sink (channel selector ) */
132132
};
133133

134+
#ifdef UNIT_TEST
135+
void sys_comp_kpb_init(void);
136+
#endif
137+
134138
#endif

test/cmocka/src/audio/kpb/kpb_mock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <cmocka.h>
66

77
#include <sof/alloc.h>
8+
#include <sof/notifier.h>
89
#include <sof/audio/component.h>
910
#include <mock_trace.h>
1011

0 commit comments

Comments
 (0)