All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:tmp 8/44] sound/soc/codecs/wm8994.c:4483:2: error: 'ret' undeclared; did you mean
@ 2021-03-24  2:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-24  2:30 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3379 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git tmp
head:   13665f1f8b5d501b40b1bc8448b0a032c7f04cc2
commit: fa60f65cd0cad66d82e3a4c683229f2cdd0df444 [8/44] ASoC: wm8994: Fix PM disable depth imbalance on error
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=fa60f65cd0cad66d82e3a4c683229f2cdd0df444
        git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-linux-stable tmp
        git checkout fa60f65cd0cad66d82e3a4c683229f2cdd0df444
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   sound/soc/codecs/wm8994.c: In function 'wm8994_probe':
>> sound/soc/codecs/wm8994.c:4483:2: error: 'ret' undeclared (first use in this function); did you mean 'net'?
    4483 |  ret = devm_snd_soc_register_component(&pdev->dev, &soc_component_dev_wm8994,
         |  ^~~
         |  net
   sound/soc/codecs/wm8994.c:4483:2: note: each undeclared identifier is reported only once for each function it appears in
   sound/soc/codecs/wm8994.c:4489:1: error: control reaches end of non-void function [-Werror=return-type]
    4489 | }
         | ^
   At top level:
   sound/soc/codecs/wm8994.c:736:38: warning: 'wm1811_snd_controls' defined but not used [-Wunused-const-variable=]
     736 | static const struct snd_kcontrol_new wm1811_snd_controls[] = {
         |                                      ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for FRAME_POINTER
   Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
   Selected by
   - FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86


vim +4483 sound/soc/codecs/wm8994.c

  4465	
  4466	static int wm8994_probe(struct platform_device *pdev)
  4467	{
  4468		struct wm8994_priv *wm8994;
  4469	
  4470		wm8994 = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_priv),
  4471				      GFP_KERNEL);
  4472		if (wm8994 == NULL)
  4473			return -ENOMEM;
  4474		platform_set_drvdata(pdev, wm8994);
  4475	
  4476		mutex_init(&wm8994->fw_lock);
  4477	
  4478		wm8994->wm8994 = dev_get_drvdata(pdev->dev.parent);
  4479	
  4480		pm_runtime_enable(&pdev->dev);
  4481		pm_runtime_idle(&pdev->dev);
  4482	
> 4483		ret = devm_snd_soc_register_component(&pdev->dev, &soc_component_dev_wm8994,
  4484				wm8994_dai, ARRAY_SIZE(wm8994_dai));
  4485		if (ret < 0)
  4486			pm_runtime_disable(&pdev->dev);
  4487	
  4488		return ret;
  4489	}
  4490	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 59754 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-24  2:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  2:30 [sashal-linux-stable:tmp 8/44] sound/soc/codecs/wm8994.c:4483:2: error: 'ret' undeclared; did you mean 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.