[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 Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405021426.kd3Wut93-lkp@xxxxxxxxx/

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@xxxxxxxxxxx>
:::::: CC: Takashi Iwai <tiwai@xxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux