tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 1e78c85f6eec2ef1bb91ad01af8ac649e1e75d44
commit: 47e63f43417cb015e50424ad1007d534a7cf3b27 [47/53] ALSA: hda/realtek: Use the new
vmaster mute LED helper
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 47e63f43417cb015e50424ad1007d534a7cf3b27
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/init.h:5,
from sound/pci/hda/patch_realtek.c:13:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) <
max_mapnr)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
arch/xtensa/include/asm/page.h:190:32: note: in expansion of macro 'pfn_valid'
190 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
| ^~~~~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro
'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from sound/pci/hda/patch_realtek.c:15:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) <
max_mapnr)
| ^~
include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE'
139 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
include/linux/dma-mapping.h:355:19: note: in expansion of macro 'pfn_valid'
355 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
sound/pci/hda/patch_realtek.c: In function 'alc_fixup_micmute_led':
sound/pci/hda/patch_realtek.c:294:3: error: implicit declaration of function
'snd_hda_gen_add_micmute_led_cdev'; did you mean
'snd_hda_gen_add_micmute_led'? [-Werror=implicit-function-declaration]
294 | snd_hda_gen_add_micmute_led_cdev(codec, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| snd_hda_gen_add_micmute_led
sound/pci/hda/patch_realtek.c: In function 'alc269_fixup_hp_mute_led':
> sound/pci/hda/patch_realtek.c:4108:3: error: implicit declaration
of function 'snd_hda_gen_add_mute_led_cdev'; did you mean
'snd_hda_gen_add_micmute_led'? [-Werror=implicit-function-declaration]
4108 | snd_hda_gen_add_mute_led_cdev(codec, vref_mute_led_set);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| snd_hda_gen_add_micmute_led
cc1: some warnings being treated as errors
vim +4108 sound/pci/hda/patch_realtek.c
4090
4091 static void alc269_fixup_hp_mute_led(struct hda_codec *codec,
4092 const struct hda_fixup *fix, int action)
4093 {
4094 struct alc_spec *spec = codec->spec;
4095 const struct dmi_device *dev = NULL;
4096
4097 if (action != HDA_FIXUP_ACT_PRE_PROBE)
4098 return;
4099
4100 while ((dev = dmi_find_device(DMI_DEV_TYPE_OEM_STRING, NULL, dev))) {
4101 int pol, pin;
4102 if (sscanf(dev->name, "HP_Mute_LED_%d_%x", &pol, &pin) !=
2)
4103 continue;
4104 if (pin < 0x0a || pin >= 0x10)
4105 break;
4106 spec->mute_led_polarity = pol;
4107 spec->mute_led_nid = pin - 0x0a + 0x18;
4108 snd_hda_gen_add_mute_led_cdev(codec, vref_mute_led_set);
4109 codec->power_filter = led_power_filter;
4110 codec_dbg(codec,
4111 "Detected mute LED for %x:%d\n", spec->mute_led_nid,
4112 spec->mute_led_polarity);
4113 break;
4114 }
4115 }
4116
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org