From: kernel test robot <lkp@intel.com>
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 [thread overview]
Message-ID: <202112041716.sslkT5YI-lkp@intel.com> (raw)
[-- 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
reply other threads:[~2021-12-04 9:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202112041716.sslkT5YI-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.