From: Kevin Hao <kexin....@windriver.com>

Shuffle the location of '#include "fsl_easrc_m2m.c"' upwards to fix the
following build error:
sound/soc/fsl/fsl_easrc.c: In function 'fsl_easrc_hw_params':
sound/soc/fsl/fsl_easrc.c:1511:15: error: implicit declaration of function 
'fsl_easrc_m2m_init' [-Werror=implicit-function-declaration]
 1511 |         ret = fsl_easrc_m2m_init(easrc);
      |               ^~~~~~~~~~~~~~~~~~

Signed-off-by: Kevin Hao <kexin....@windriver.com>
---
 sound/soc/fsl/fsl_easrc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c
index f41cf437f246..1237def1257b 100644
--- a/sound/soc/fsl/fsl_easrc.c
+++ b/sound/soc/fsl/fsl_easrc.c
@@ -1435,6 +1435,8 @@ static int fsl_easrc_trigger(struct snd_pcm_substream 
*substream,
        return 0;
 }
 
+#include "fsl_easrc_m2m.c"
+
 static int fsl_easrc_hw_params(struct snd_pcm_substream *substream,
                               struct snd_pcm_hw_params *params,
                               struct snd_soc_dai *dai)
@@ -1751,8 +1753,6 @@ static const struct regmap_config fsl_easrc_regmap_config 
= {
        .cache_type = REGCACHE_RBTREE,
 };
 
-#include "fsl_easrc_m2m.c"
-
 #ifdef DEBUG
 static void fsl_easrc_dump_firmware(struct fsl_asrc *easrc)
 {

-- 
2.45.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13915): 
https://lists.yoctoproject.org/g/linux-yocto/message/13915
Mute This Topic: https://lists.yoctoproject.org/mt/105978737/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to