diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-02-10 10:33:20 -0600 |
---|---|---|
committer | Daniel Baluta <daniel.baluta@nxp.com> | 2020-02-21 17:22:10 +0200 |
commit | 452aee67ca049b4d60fe0ad9fddcbfa30cdbe4d1 (patch) | |
tree | 5231dcdf54b33e210962e7bfb874e7cee73a5162 /sound/soc/sof | |
parent | 87ece2ab2c010bbe1cb981ab11f449933cbc6a19 (diff) |
MLK-23350-8 ASoC: SOF: imx: fix compilation with allyesconfig
make ARCH=mips allyesconfig generates this error:
sound/soc/sof/imx/imx8m.o:(.data.dsp_ops+0x0): multiple definition of
`dsp_ops'
sound/soc/sof/imx/imx8.o:(.data.dsp_ops+0x0): first defined here
Fix by making the definitions static
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Diffstat (limited to 'sound/soc/sof')
-rw-r--r-- | sound/soc/sof/imx/imx8.c | 2 | ||||
-rw-r--r-- | sound/soc/sof/imx/imx8m.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index c1615e440e00..49dfbeecddff 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -119,7 +119,7 @@ static void imx8_dsp_handle_request(struct imx_dsp_ipc *ipc) snd_sof_ipc_msgs_rx(priv->sdev); } -struct imx_dsp_ops dsp_ops = { +static struct imx_dsp_ops dsp_ops = { .handle_reply = imx8_dsp_handle_reply, .handle_request = imx8_dsp_handle_request, }; diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c index fad224066eef..5bb1e4350c0d 100644 --- a/sound/soc/sof/imx/imx8m.c +++ b/sound/soc/sof/imx/imx8m.c @@ -147,7 +147,7 @@ static void imx8m_dsp_handle_request(struct imx_dsp_ipc *ipc) snd_sof_ipc_msgs_rx(priv->sdev); } -struct imx_dsp_ops dsp_ops = { +static struct imx_dsp_ops dsp_ops = { .handle_reply = imx8m_dsp_handle_reply, .handle_request = imx8m_dsp_handle_request, }; |