linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:pending-fixes 243/269] sound/pci/hda/patch_realtek.c:7207:13: warning: 'alc287_s4_power_gpio3_default' defined but not used
@ 2024-05-02  6:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-02  6:17 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: oe-kbuild-all, Linux Memory Management List

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


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

only message in thread, other threads:[~2024-05-02  6:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-02  6:17 [linux-next:pending-fixes 243/269] sound/pci/hda/patch_realtek.c:7207:13: warning: 'alc287_s4_power_gpio3_default' defined but not used 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