From: kernel test robot <lkp@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:pending-fixes 243/269] sound/pci/hda/patch_realtek.c:7207:13: warning: 'alc287_s4_power_gpio3_default' defined but not used
Date: Thu, 2 May 2024 14:17:22 +0800 [thread overview]
Message-ID: <202405021426.kd3Wut93-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head: 609939ebb81cc404d3b90ce94838f6edb5c599ed
commit: 9b3c22ab3929672b117f5c46d718692abb65da0b [243/269] ALSA: hda/realtek: Fix build error without CONFIG_PM
config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20240502/202405021426.kd3Wut93-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240502/202405021426.kd3Wut93-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/202405021426.kd3Wut93-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> sound/pci/hda/patch_realtek.c:7207:13: warning: 'alc287_s4_power_gpio3_default' defined but not used [-Wunused-function]
7207 | static void alc287_s4_power_gpio3_default(struct hda_codec *codec)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/alc287_s4_power_gpio3_default +7207 sound/pci/hda/patch_realtek.c
1e707769df0727 Kailang Yang 2024-04-30 7206
1e707769df0727 Kailang Yang 2024-04-30 @7207 static void alc287_s4_power_gpio3_default(struct hda_codec *codec)
1e707769df0727 Kailang Yang 2024-04-30 7208 {
1e707769df0727 Kailang Yang 2024-04-30 7209 if (is_s4_suspend(codec)) {
1e707769df0727 Kailang Yang 2024-04-30 7210 alc_write_coef_idx(codec, 0x10, 0x8806); /* Change MLK to GPIO3 */
1e707769df0727 Kailang Yang 2024-04-30 7211 alc_write_coefex_idx(codec, 0x5a, 0x00, 0x554f); /* write gpio3 as default value */
1e707769df0727 Kailang Yang 2024-04-30 7212 }
1e707769df0727 Kailang Yang 2024-04-30 7213 }
1e707769df0727 Kailang Yang 2024-04-30 7214
:::::: The code at line 7207 was first introduced by commit
:::::: 1e707769df072757bdcafab158bb159ead73daa4 ALSA: hda/realtek - Set GPIO3 to default at S4 state for Thinkpad with ALC1318
:::::: TO: Kailang Yang <kailang@realtek.com>
:::::: CC: Takashi Iwai <tiwai@suse.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-05-02 6:17 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=202405021426.kd3Wut93-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-mm@kvack.org \
--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