From 62a7d0356407d83b07c7126d2746fda64dea8564 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 22 Oct 2024 16:34:54 +0300 Subject: [PATCH] Audio: Copier: Fix testbench HiFi3 build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes build error of non-static functions without prototypes: cc1: warnings being treated as errors sof/src/audio/copier/copier_hifi.c:142: warning: no previous prototype for ‘copier_load_slots_and_gain16’ sof/src/audio/copier/copier_hifi.c:161: warning: no previous prototype for ‘copier_load_slots_and_gain32’ Signed-off-by: Seppo Ingalsuo --- src/audio/copier/copier_hifi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/audio/copier/copier_hifi.c b/src/audio/copier/copier_hifi.c index 4651b8cdd339..0d0d454f2c41 100644 --- a/src/audio/copier/copier_hifi.c +++ b/src/audio/copier/copier_hifi.c @@ -136,9 +136,9 @@ int copier_gain_set_fade_params(struct comp_dev *dev, struct dai_data *dd, return ret; } -inline ae_int16x4 copier_load_slots_and_gain16(ae_int16x4 **addr, - ae_valign *align_in, - const ae_int16x4 gains) +static inline ae_int16x4 copier_load_slots_and_gain16(ae_int16x4 **addr, + ae_valign *align_in, + const ae_int16x4 gains) { ae_int16x4 d16_1 = AE_ZERO16(); ae_int32x2 d32_1 = AE_ZERO32(); @@ -155,9 +155,9 @@ inline ae_int16x4 copier_load_slots_and_gain16(ae_int16x4 **addr, return AE_TRUNC16X4F32(d32_1, d32_2); } -inline void copier_load_slots_and_gain32(ae_int32x2 **addr, ae_valign *align_in, - const ae_int16x4 gains, ae_int32x2 *out_d32_h, - ae_int32x2 *out_d32_l) +static inline void copier_load_slots_and_gain32(ae_int32x2 **addr, ae_valign *align_in, + const ae_int16x4 gains, ae_int32x2 *out_d32_h, + ae_int32x2 *out_d32_l) { ae_int32x2 d32tmp_h = AE_ZERO32(); ae_int32x2 d32tmp_l = AE_ZERO32();