public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Cezary Rojewski <[email protected]>
Cc: [email protected], Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>,
	[email protected], Takashi Iwai <[email protected]>,
	Kai Vehmanen <[email protected]>,
	Pierre-Louis Bossart <[email protected]>
Subject: [ammarfaizi2-block:tiwai/sound/for-next 4/13] sound/soc/intel/skylake/skl.c:729:25: warning: unused variable 'skl'
Date: Tue, 23 Aug 2022 01:18:43 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

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

                 reply	other threads:[~2022-08-22 17:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox