All of lore.kernel.org
 help / color / mirror / Atom feed
* [omap-audio:peter/linux-next-wip 17/56] sound/soc/codecs/tas2555.c:96:13: error: variable 'ret' set but not used
@ 2021-09-11 19:05 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-11 19:05 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/omap-audio/linux-audio peter/linux-next-wip
head:   4efa1067ef8e7a7ce1eb63285e4fd2f08677efe5
commit: efe3a028b21874c42b2cd57746c31d0cc001be86 [17/56] ASoC: Initial driver for TAS2555 Smart Amplifier
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/omap-audio/linux-audio/commit/efe3a028b21874c42b2cd57746c31d0cc001be86
        git remote add omap-audio https://github.com/omap-audio/linux-audio
        git fetch --no-tags omap-audio peter/linux-next-wip
        git checkout efe3a028b21874c42b2cd57746c31d0cc001be86
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sh 

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/tas2555.c: In function 'tas2555_read':
>> sound/soc/codecs/tas2555.c:96:13: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
      96 |         int ret;
         |             ^~~
   cc1: all warnings being treated as errors


vim +/ret +96 sound/soc/codecs/tas2555.c

    90	
    91	static unsigned int tas2555_read(struct snd_soc_component *component,
    92					 unsigned int reg)
    93	{
    94		struct tas2555_priv *tas2555 = snd_soc_component_get_drvdata(component);
    95		unsigned int value = 0;
  > 96		int ret;
    97	
    98		dev_dbg(component->dev, "%s: BOOK:PAGE:REG %u:%u:%u\n", __func__,
    99			TAS2555_BOOK_ID(reg), TAS2555_PAGE_ID(reg),
   100			TAS2555_PAGE_REG(reg));
   101		tas2555_change_book(tas2555, TAS2555_BOOK_ID(reg));
   102		ret = regmap_read(tas2555->regmap, TAS2555_BOOK_REG(reg), &value);
   103		return value;
   104	}
   105	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [omap-audio:peter/linux-next-wip 17/56] sound/soc/codecs/tas2555.c:96:13: error: variable 'ret' set but not used
@ 2021-10-02 10:15 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-02 10:15 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/omap-audio/linux-audio peter/linux-next-wip
head:   d08c31cfb65e8197b0ab607484d26fc48366dcee
commit: 303cec68df3efa21a5cd277bfdbbb55d5a9ea8c8 [17/56] ASoC: Initial driver for TAS2555 Smart Amplifier
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/omap-audio/linux-audio/commit/303cec68df3efa21a5cd277bfdbbb55d5a9ea8c8
        git remote add omap-audio https://github.com/omap-audio/linux-audio
        git fetch --no-tags omap-audio peter/linux-next-wip
        git checkout 303cec68df3efa21a5cd277bfdbbb55d5a9ea8c8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

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/tas2555.c: In function 'tas2555_read':
>> sound/soc/codecs/tas2555.c:96:13: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
      96 |         int ret;
         |             ^~~
   cc1: all warnings being treated as errors


vim +/ret +96 sound/soc/codecs/tas2555.c

    90	
    91	static unsigned int tas2555_read(struct snd_soc_component *component,
    92					 unsigned int reg)
    93	{
    94		struct tas2555_priv *tas2555 = snd_soc_component_get_drvdata(component);
    95		unsigned int value = 0;
  > 96		int ret;
    97	
    98		dev_dbg(component->dev, "%s: BOOK:PAGE:REG %u:%u:%u\n", __func__,
    99			TAS2555_BOOK_ID(reg), TAS2555_PAGE_ID(reg),
   100			TAS2555_PAGE_REG(reg));
   101		tas2555_change_book(tas2555, TAS2555_BOOK_ID(reg));
   102		ret = regmap_read(tas2555->regmap, TAS2555_BOOK_REG(reg), &value);
   103		return value;
   104	}
   105	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-02 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11 19:05 [omap-audio:peter/linux-next-wip 17/56] sound/soc/codecs/tas2555.c:96:13: error: variable 'ret' set but not used kernel test robot
2021-10-02 10:15 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.