sound/soc/codecs/tas2555.c:641:6: warning: Variable 'ret' is reassigned a value before the old one has been used.
PATCH 24/71 sound/soc/codecs/tas2555.c:641:6: warning: Variable 'ret' is reassigned a value before the old one has been used.
tree: https://github.com/omap-audio/linux-audio peter/linux-next-wip head: 5dbbfd0560518c2de57856803de7b00c5d87b374 commit: a919ef20b36c709f706bf530c5a0afe8eada1304 [24/71] ASoC: Initial driver for TAS2555 Smart Amplifier config: mips-randconfig-p002-20200901 (attached as .config) compiler: mips-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
git checkout a919ef20b36c709f706bf530c5a0afe8eada1304
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
mips-linux-ld: drivers/mmc/host/mtk-sd.o: in function `msdc_set_mclk':
Quoted 2 lines
Quoted 2 lines
drivers/mmc/host/mtk-sd.c:(.text.msdc_set_mclk+0x338): undefined reference to `clk_get_parent'
mips-linux-ld: drivers/mmc/host/mtk-sd.c:(.text.msdc_set_mclk+0x448): undefined reference to `clk_get_parent'
cppcheck warnings: (new ones prefixed by >>)
Quoted 1 line
Quoted 1 line
sound/soc/codecs/tas2555.c:641:6: warning: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment]
ret = regmap_read(tas2555->regmap, TAS2555_BOOKCTL_REG,
^
sound/soc/codecs/tas2555.c:636:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = regulator_bulk_enable(ARRAY_SIZE(tas2555->supplies),
^
sound/soc/codecs/tas2555.c:641:6: note: Variable 'ret' is reassigned a value before the old one has been used.
ret = regmap_read(tas2555->regmap, TAS2555_BOOKCTL_REG,
^# https://github.com/omap-audio/linux-audio/commit/a919ef20b36c709f706bf530c5a0afe8eada1304
git remote add omap-audio https://github.com/omap-audio/linux-audio
git fetch --no-tags omap-audio peter/linux-next-wip
git checkout a919ef20b36c709f706bf530c5a0afe8eada1304
vim +/ret +641 sound/soc/codecs/tas2555.c
a919ef20b36c70 Peter Ujfalusi 2015-05-08 629 static int tas2555_codec_probe(struct snd_soc_component *component)
a919ef20b36c70 Peter Ujfalusi 2015-05-08 630 {
a919ef20b36c70 Peter Ujfalusi 2015-05-08 631 struct tas2555_priv *tas2555 = snd_soc_component_get_drvdata(component);
a919ef20b36c70 Peter Ujfalusi 2015-05-08 632 int ret;
a919ef20b36c70 Peter Ujfalusi 2015-05-08 633
a919ef20b36c70 Peter Ujfalusi 2015-05-08 634 tas2555->component = component;
a919ef20b36c70 Peter Ujfalusi 2015-05-08 635
a919ef20b36c70 Peter Ujfalusi 2015-05-08 636 ret = regulator_bulk_enable(ARRAY_SIZE(tas2555->supplies),
a919ef20b36c70 Peter Ujfalusi 2015-05-08 637 tas2555->supplies);Error handling intended here?
a919ef20b36c70 Peter Ujfalusi 2015-05-08 638 a919ef20b36c70 Peter Ujfalusi 2015-05-08 639 gpiod_set_value(tas2555->nreset, 1); a919ef20b36c70 Peter Ujfalusi 2015-05-08 640 a919ef20b36c70 Peter Ujfalusi 2015-05-08 @641 ret = regmap_read(tas2555->regmap, TAS2555_BOOKCTL_REG, a919ef20b36c70 Peter Ujfalusi 2015-05-08 642 &tas2555->current_book); a919ef20b36c70 Peter Ujfalusi 2015-05-08 643 if (ret < 0) a919ef20b36c70 Peter Ujfalusi 2015-05-08 644 tas2555->current_book = 0; a919ef20b36c70 Peter Ujfalusi 2015-05-08 645 a919ef20b36c70 Peter Ujfalusi 2015-05-08 646 dev_info(component->dev, "TAS2555 PGID: 0x%02x\n", a919ef20b36c70 Peter Ujfalusi 2015-05-08 647 tas2555_read(component, TAS2555_REV_PGID_REG)); a919ef20b36c70 Peter Ujfalusi 2015-05-08 648 a919ef20b36c70 Peter Ujfalusi 2015-05-08 649 return tas2555_init(component); a919ef20b36c70 Peter Ujfalusi 2015-05-08 650 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org