Skip to content

Commit

Permalink
Audio: Copier: Fix testbench HiFi3 build
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
singalsu authored and lgirdwood committed Oct 23, 2024
1 parent 4d34c29 commit 62a7d03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/audio/copier/copier_hifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 62a7d03

Please sign in to comment.