* [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'
@ 2021-12-04 9:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-04 9:09 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4805 bytes --]
tree: https://github.com/Freescale/linux-fslc 5.10-2.1.x-imx
head: c0604ebbd45934a2c42df8382b674244d1963fa2
commit: c1af3c3291ab07d8f0093cea0e7e6f2ba340ffec [6160/15840] LF-3218-1 ASoC: 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=1 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/c1af3c3291ab07d8f0093cea0e7e6f2ba340ffec
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash sound/soc/codecs/ sound/soc/sof/imx/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
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 target_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 overwritten [-Woverride-init]
281 | #define SNDRV_PCM_INFO_MMAP 0x00000001 /* hardware supports mmap */
| ^~~~~~~~~~
sound/soc/sof/imx/imx8.c:644:25: note: in expansion of macro 'SNDRV_PCM_INFO_MMAP'
644 | .hw_info = 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 /* hardware supports mmap */
| ^~~~~~~~~~
sound/soc/sof/imx/imx8.c:644:25: note: in expansion of macro 'SNDRV_PCM_INFO_MMAP'
644 | .hw_info = 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 = (struct imx8_priv *)sdev->pdata->hw_pdata;
475
476 for (i = 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 = (struct imx8_priv *)sdev->pdata->hw_pdata;
487 int i;
488
489 imx8_prepare_clocks(sdev);
490
491 for (i = 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-04 9:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-04 9:09 [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' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.