lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 23 Aug 2022 01:18:43 +0800
From:   kernel test robot <lkp@...el.com>
To:     Cezary Rojewski <cezary.rojewski@...el.com>
Cc:     kbuild-all@...ts.01.org, Ammar Faizi <ammarfaizi2@...weeb.org>,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org, Takashi Iwai <tiwai@...e.de>,
        Kai Vehmanen <kai.vehmanen@...ux.intel.com>,
        Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Subject: [ammarfaizi2-block:tiwai/sound/for-next 4/13]
 sound/soc/intel/skylake/skl.c:729:25: warning: unused variable 'skl'

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/202208230107.aJwMhDQM-lkp@intel.com/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 <lkp@...el.com>

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 <cezary.rojewski@...el.com>
:::::: CC: Mark Brown <broonie@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ