All of lore.kernel.org
 help / color / mirror / Atom feed
* [morimoto-linux:fw-cleanup-2020-05-18-v1 112/211] sound/soc/soc-pcm.c:631:28: warning: variable 'last' set but not used
@ 2020-05-19  3:28 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-19  3:28 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/morimoto/linux fw-cleanup-2020-05-18-v1
head:   ab7ab9e3fba39b481f85abd88e5d2893f013650f
commit: f0b68bf29aed7f5122fcd158f1b0b3be032c422d [112/211] ASoC: soc-component: add mark for soc_pcm_components_open/close()
config: riscv-randconfig-r022-20200519 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f0b68bf29aed7f5122fcd158f1b0b3be032c422d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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

All warnings (new ones prefixed by >>, old ones prefixed by <<):

sound/soc/soc-pcm.c: In function 'soc_pcm_components_open':
>> sound/soc/soc-pcm.c:631:28: warning: variable 'last' set but not used [-Wunused-but-set-variable]
631 |  struct snd_soc_component *last = NULL;
|                            ^~~~

vim +/last +631 sound/soc/soc-pcm.c

bd477c31ca3ae8 Lars-Peter Clausen 2013-05-14  627  
dd03907bf129b4 Kuninori Morimoto  2020-02-10  628  static int soc_pcm_components_open(struct snd_pcm_substream *substream)
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  629  {
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  630  	struct snd_soc_pcm_runtime *rtd = substream->private_data;
d2aaa8d8bfba93 Kai Vehmanen       2020-02-20 @631  	struct snd_soc_component *last = NULL;
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  632  	struct snd_soc_component *component;
613fb50059cf19 Kuninori Morimoto  2020-01-10  633  	int i, ret = 0;
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  634  
613fb50059cf19 Kuninori Morimoto  2020-01-10  635  	for_each_rtd_components(rtd, i, component) {
d2aaa8d8bfba93 Kai Vehmanen       2020-02-20  636  		last = component;
d2aaa8d8bfba93 Kai Vehmanen       2020-02-20  637  
f0b68bf29aed7f Kuninori Morimoto  2020-03-04  638  		ret = snd_soc_component_module_get_when_open(component, substream);
4a81e8f30d0b42 Kuninori Morimoto  2019-07-26  639  		if (ret < 0) {
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  640  			dev_err(component->dev,
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  641  				"ASoC: can't get module %s\n",
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  642  				component->name);
d2aaa8d8bfba93 Kai Vehmanen       2020-02-20  643  			break;
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  644  		}
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  645  
ae2f4849286eed Kuninori Morimoto  2019-07-26  646  		ret = snd_soc_component_open(component, substream);
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  647  		if (ret < 0) {
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  648  			dev_err(component->dev,
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  649  				"ASoC: can't open component %s: %d\n",
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  650  				component->name, ret);
d2aaa8d8bfba93 Kai Vehmanen       2020-02-20  651  			break;
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  652  		}
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  653  	}
dd03907bf129b4 Kuninori Morimoto  2020-02-10  654  
d2aaa8d8bfba93 Kai Vehmanen       2020-02-20  655  	return ret;
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  656  }
e7ecfdb794fef1 Kuninori Morimoto  2019-05-13  657  

:::::: The code at line 631 was first introduced by commit
:::::: d2aaa8d8bfba93237ac944ee058fb98e2c2ef983 ASoC: soc-pcm: fix state tracking error in snd_soc_component_open/close()

:::::: TO: Kai Vehmanen <kai.vehmanen@linux.intel.com>
:::::: CC: Mark Brown <broonie@kernel.org>

---
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: 31962 bytes --]

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

only message in thread, other threads:[~2020-05-19  3:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19  3:28 [morimoto-linux:fw-cleanup-2020-05-18-v1 112/211] sound/soc/soc-pcm.c:631:28: warning: variable 'last' set but not used kbuild 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.