Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Heiner Kallweit <hkallweit1@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, alsa-devel@alsa-project.org,
	Takashi Iwai <tiwai@suse.de>
Subject: [tiwai-sound:for-next 8/9] sound/pci/hda/hda_intel.c:1035:26: warning: variable 'bus' set but not used
Date: Tue, 5 Nov 2024 02:23:24 +0800	[thread overview]
Message-ID: <202411050247.3esQz7Am-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head:   149cb7d9537e241b43056fb4133f56832ac51b7a
commit: cac99f73f0752e1c83674e12fb2c605dca9ce474 [8/9] ALSA: hda: intel: Don't free interrupt when suspending
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20241105/202411050247.3esQz7Am-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050247.3esQz7Am-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411050247.3esQz7Am-lkp@intel.com/

All warnings (new ones prefixed by >>):

   sound/pci/hda/hda_intel.c: In function 'azx_suspend':
>> sound/pci/hda/hda_intel.c:1035:26: warning: variable 'bus' set but not used [-Wunused-but-set-variable]
    1035 |         struct hdac_bus *bus;
         |                          ^~~


vim +/bus +1035 sound/pci/hda/hda_intel.c

f5dac54d9d9382 Kai-Heng Feng  2020-10-27  1030  
3baffc4a84d759 Takashi Iwai   2018-12-07  1031  static int azx_suspend(struct device *dev)
3baffc4a84d759 Takashi Iwai   2018-12-07  1032  {
3baffc4a84d759 Takashi Iwai   2018-12-07  1033  	struct snd_card *card = dev_get_drvdata(dev);
3baffc4a84d759 Takashi Iwai   2018-12-07  1034  	struct azx *chip;
3baffc4a84d759 Takashi Iwai   2018-12-07 @1035  	struct hdac_bus *bus;
3baffc4a84d759 Takashi Iwai   2018-12-07  1036  
3baffc4a84d759 Takashi Iwai   2018-12-07  1037  	if (!azx_is_pm_ready(card))
c5c215232dfb71 Takashi Iwai   2012-12-04  1038  		return 0;
c5c215232dfb71 Takashi Iwai   2012-12-04  1039  
3baffc4a84d759 Takashi Iwai   2018-12-07  1040  	chip = card->private_data;
a41d122449bea3 Takashi Iwai   2015-04-14  1041  	bus = azx_bus(chip);
472e18f63c425d Imre Deak      2021-06-23  1042  	azx_shutdown_chip(chip);
785d8c4be82b45 Libin Yang     2015-05-12  1043  
785d8c4be82b45 Libin Yang     2015-05-12  1044  	trace_azx_suspend(chip);
^1da177e4c3f41 Linus Torvalds 2005-04-16  1045  	return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1046  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  1047  

:::::: The code at line 1035 was first introduced by commit
:::::: 3baffc4a84d759ba54c461e8e4583bd8890c749a ALSA: hda/intel: Refactoring PM code

:::::: TO: Takashi Iwai <tiwai@suse.de>
:::::: CC: Takashi Iwai <tiwai@suse.de>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-11-04 18:24 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 \
    --in-reply-to=202411050247.3esQz7Am-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=hkallweit1@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tiwai@suse.de \
    /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