From 51ef2db3d2d46271b04e4ce8b5bf2239c52289ae Mon Sep 17 00:00:00 2001 From: Janusz Jankowski Date: Fri, 5 Apr 2019 19:43:28 +0200 Subject: [PATCH] test: fix kpb compilation with -Werror Signed-off-by: Janusz Jankowski --- src/include/sof/audio/kpb.h | 4 ++++ test/cmocka/src/audio/kpb/kpb_mock.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/include/sof/audio/kpb.h b/src/include/sof/audio/kpb.h index b9575022a..45a9d692f 100644 --- a/src/include/sof/audio/kpb.h +++ b/src/include/sof/audio/kpb.h @@ -131,4 +131,8 @@ struct comp_data { struct comp_buffer *rt_sink; /**< real time sink (channel selector ) */ }; +#ifdef UNIT_TEST +void sys_comp_kpb_init(void); +#endif + #endif diff --git a/test/cmocka/src/audio/kpb/kpb_mock.c b/test/cmocka/src/audio/kpb/kpb_mock.c index 5cda63f04..fcc768a20 100644 --- a/test/cmocka/src/audio/kpb/kpb_mock.c +++ b/test/cmocka/src/audio/kpb/kpb_mock.c @@ -5,6 +5,7 @@ #include #include +#include #include #include