From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6063805137583957498==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [freescale-fslc:5.10-2.1.x-imx 6160/15840] sound/soc/sof/imx/imx8.c:471:5: warning: no previous prototype for 'imx8_suspend' Date: Sat, 04 Dec 2021 17:09:32 +0800 Message-ID: <202112041716.sslkT5YI-lkp@intel.com> List-Id: --===============6063805137583957498== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx head: c0604ebbd45934a2c42df8382b674244d1963fa2 commit: c1af3c3291ab07d8f0093cea0e7e6f2ba340ffec [6160/15840] LF-3218-1 ASo= C: SOF: imx: Fix PM sleep config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20211204= /202112041716.sslkT5YI-lkp(a)intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/Freescale/linux-fslc/commit/c1af3c3291ab07d8f0= 093cea0e7e6f2ba340ffec git remote add freescale-fslc https://github.com/Freescale/linux-fs= lc git fetch --no-tags freescale-fslc 5.10-2.1.x-imx git checkout c1af3c3291ab07d8f0093cea0e7e6f2ba340ffec # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dia64 SHELL=3D/bin/bash sound/soc/codecs/ sound/soc/so= f/imx/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> sound/soc/sof/imx/imx8.c:471:5: warning: no previous prototype for 'imx8= _suspend' [-Wmissing-prototypes] 471 | int imx8_suspend(struct snd_sof_dev *sdev) | ^~~~~~~~~~~~ >> sound/soc/sof/imx/imx8.c:484:5: warning: no previous prototype for 'imx8= _resume' [-Wmissing-prototypes] 484 | int imx8_resume(struct snd_sof_dev *sdev) | ^~~~~~~~~~~ sound/soc/sof/imx/imx8.c:497:5: warning: no previous prototype for 'imx8= _dsp_runtime_resume' [-Wmissing-prototypes] 497 | int imx8_dsp_runtime_resume(struct snd_sof_dev *sdev) | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sof/imx/imx8.c:509:5: warning: no previous prototype for 'imx8= _dsp_runtime_suspend' [-Wmissing-prototypes] 509 | int imx8_dsp_runtime_suspend(struct snd_sof_dev *sdev) | ^~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sof/imx/imx8.c:522:5: warning: no previous prototype for 'imx8= _dsp_suspend' [-Wmissing-prototypes] 522 | int imx8_dsp_suspend(struct snd_sof_dev *sdev, unsigned int targ= et_state) | ^~~~~~~~~~~~~~~~ sound/soc/sof/imx/imx8.c:535:5: warning: no previous prototype for 'imx8= _dsp_resume' [-Wmissing-prototypes] 535 | int imx8_dsp_resume(struct snd_sof_dev *sdev) | ^~~~~~~~~~~~~~~ sound/soc/sof/imx/imx8.c:580:5: warning: no previous prototype for 'imx8= _dsp_set_power_state' [-Wmissing-prototypes] 580 | int imx8_dsp_set_power_state(struct snd_sof_dev *sdev, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/sound/asound.h:24, from include/sound/pcm.h:11, from include/sound/soc.h:23, from include/sound/sof.h:15, from sound/soc/sof/imx/imx8.c:17: include/uapi/sound/asound.h:281:41: warning: initialized field overwritt= en [-Woverride-init] 281 | #define SNDRV_PCM_INFO_MMAP 0x00000001 /* hardw= are supports mmap */ | ^~~~~~~~~~ sound/soc/sof/imx/imx8.c:644:25: note: in expansion of macro 'SNDRV_PCM_= INFO_MMAP' 644 | .hw_info =3D SNDRV_PCM_INFO_MMAP | | ^~~~~~~~~~~~~~~~~~~ include/uapi/sound/asound.h:281:41: note: (near initialization for 'sof_= imx8_ops.hw_info') 281 | #define SNDRV_PCM_INFO_MMAP 0x00000001 /* hardw= are supports mmap */ | ^~~~~~~~~~ sound/soc/sof/imx/imx8.c:644:25: note: in expansion of macro 'SNDRV_PCM_= INFO_MMAP' 644 | .hw_info =3D SNDRV_PCM_INFO_MMAP | | ^~~~~~~~~~~~~~~~~~~ vim +/imx8_suspend +471 sound/soc/sof/imx/imx8.c 470 = > 471 int imx8_suspend(struct snd_sof_dev *sdev) 472 { 473 int i; 474 struct imx8_priv *priv =3D (struct imx8_priv *)sdev->pdata->hw_pdat= a; 475 = 476 for (i =3D 0; i < DSP_MU_CHAN_NUM; i++) 477 imx_dsp_free_channel(priv->dsp_ipc, i); 478 = 479 imx8_disable_clocks(priv->sdev); 480 = 481 return 0; 482 } 483 = > 484 int imx8_resume(struct snd_sof_dev *sdev) 485 { 486 struct imx8_priv *priv =3D (struct imx8_priv *)sdev->pdata->hw_pdat= a; 487 int i; 488 = 489 imx8_prepare_clocks(sdev); 490 = 491 for (i =3D 0; i < DSP_MU_CHAN_NUM; i++) 492 imx_dsp_request_channel(priv->dsp_ipc, i); 493 = 494 return 0; 495 } 496 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6063805137583957498==--