public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:tiwai/sound/for-next 4/13] sound/soc/intel/skylake/skl.c:729:25: warning: unused variable 'skl'
@ 2022-08-22 17:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-22 17:18 UTC (permalink / raw)
  To: Cezary Rojewski
  Cc: kbuild-all, Ammar Faizi, GNU/Weeb Mailing List, linux-kernel,
	Takashi Iwai, Kai Vehmanen, Pierre-Louis Bossart

tree:   https://github.com/ammarfaizi2/linux-block tiwai/sound/for-next
head:   1cda83e42bf66beb06bf61c7a78951ec0c028898
commit: 3fd63658caed9494cca1d4789a66d3d2def2a0ab [4/13] ASoC: Intel: Drop hdac_ext usage for codec device creation
config: x86_64-randconfig-a002-20211028 (https://download.01.org/0day-ci/archive/20220823/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/3fd63658caed9494cca1d4789a66d3d2def2a0ab
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block tiwai/sound/for-next
        git checkout 3fd63658caed9494cca1d4789a66d3d2def2a0ab
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/intel/skylake/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

   sound/soc/intel/skylake/skl.c: In function 'probe_codec':
>> sound/soc/intel/skylake/skl.c:729:25: warning: unused variable 'skl' [-Wunused-variable]
     729 |         struct skl_dev *skl = bus_to_skl(bus);
         |                         ^~~


vim +/skl +729 sound/soc/intel/skylake/skl.c

e4746d94d00c529 Cezary Rojewski      2022-08-16  720  
d8c2dab8381d583 Jeeja KP             2015-07-09  721  /*
d8c2dab8381d583 Jeeja KP             2015-07-09  722   * Probe the given codec address
d8c2dab8381d583 Jeeja KP             2015-07-09  723   */
76f56fae1cf9040 Rakesh Ughreja       2018-06-01  724  static int probe_codec(struct hdac_bus *bus, int addr)
d8c2dab8381d583 Jeeja KP             2015-07-09  725  {
d8c2dab8381d583 Jeeja KP             2015-07-09  726  	unsigned int cmd = (addr << 28) | (AC_NODE_ROOT << 20) |
d8c2dab8381d583 Jeeja KP             2015-07-09  727  		(AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID;
e6a33532affd14c Dan Carpenter        2017-04-20  728  	unsigned int res = -1;
bcc2a2dc3ba8c3a Cezary Rojewski      2019-07-23 @729  	struct skl_dev *skl = bus_to_skl(bus);
8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18  730  #if IS_ENABLED(CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC)
6bae5ea94989264 Rakesh Ughreja       2018-08-22  731  	struct hdac_hda_priv *hda_codec;
8c4e7c2ee8096b5 Pierre-Louis Bossart 2018-11-18  732  #endif
3fd63658caed949 Cezary Rojewski      2022-08-16  733  	struct hda_codec *codec;
d8c2dab8381d583 Jeeja KP             2015-07-09  734  
d8c2dab8381d583 Jeeja KP             2015-07-09  735  	mutex_lock(&bus->cmd_mutex);
d8c2dab8381d583 Jeeja KP             2015-07-09  736  	snd_hdac_bus_send_cmd(bus, cmd);
d8c2dab8381d583 Jeeja KP             2015-07-09  737  	snd_hdac_bus_get_response(bus, addr, &res);
d8c2dab8381d583 Jeeja KP             2015-07-09  738  	mutex_unlock(&bus->cmd_mutex);
d8c2dab8381d583 Jeeja KP             2015-07-09  739  	if (res == -1)
d8c2dab8381d583 Jeeja KP             2015-07-09  740  		return -EIO;
00deadb5d86a3c1 Rakesh Ughreja       2018-08-22  741  	dev_dbg(bus->dev, "codec #%d probed OK: %x\n", addr, res);
d8c2dab8381d583 Jeeja KP             2015-07-09  742  

:::::: The code at line 729 was first introduced by commit
:::::: bcc2a2dc3ba8c3a7aed856f840afa6a47e3cb8e0 ASoC: Intel: Skylake: Merge skl_sst and skl into skl_dev struct

:::::: TO: Cezary Rojewski <[email protected]>
:::::: CC: Mark Brown <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-08-22 17:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-22 17:18 [ammarfaizi2-block:tiwai/sound/for-next 4/13] sound/soc/intel/skylake/skl.c:729:25: warning: unused variable 'skl' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox