Re: [PATCH] ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
From: kernel test robot
Date: Thu Jun 29 2023 - 01:10:24 EST
Hi dengxiang,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tiwai-sound/for-next]
[also build test WARNING on tiwai-sound/for-linus linus/master v6.4 next-20230628]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/dengxiang/ALSA-hda-realtek-Add-quirks-for-Unis-H3C-Desktop-B760-Q760/20230629-110147
base: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
patch link: https://lore.kernel.org/r/20230629030016.10185-1-dengxiang%40nfschina.com
patch subject: [PATCH] ALSA: hda/realtek: Add quirks for Unis H3C Desktop B760 & Q760
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20230629/202306291229.5w2tIZjA-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230629/202306291229.5w2tIZjA-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/202306291229.5w2tIZjA-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
sound/pci/hda/patch_realtek.c: In function 'alc897_fixup_unis_h3c_x500s':
>> sound/pci/hda/patch_realtek.c:11212:26: warning: unused variable 'spec' [-Wunused-variable]
11212 | struct alc_spec *spec = codec->spec;
| ^~~~
vim +/spec +11212 sound/pci/hda/patch_realtek.c
11208
11209 static void alc897_fixup_unis_h3c_x500s(struct hda_codec *codec,
11210 const struct hda_fixup *fix, int action)
11211 {
11212 struct alc_spec *spec = codec->spec;
11213
11214 if (action != HDA_FIXUP_ACT_PRE_PROBE)
11215 return;
11216
11217 snd_hda_add_verbs(codec, alc897_unis_h3c_x500s_eapd_verbs);
11218 }
11219
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki