tree: https://github.com/AsahiLinux/linux bits/070-audio head: 922f98993947de2af43eb755588482dd17fba440 commit: d8c6f041fe8bea7aa7b9b95632d7ddfb3f6c06f4 [20/48] ASoC: ops: Introduce 'soc_set_enum_kctl' config: hexagon-randconfig-r045-20221017 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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://github.com/AsahiLinux/linux/commit/d8c6f041fe8bea7aa7b9b95632d7ddfb3f6c06f4 git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux bits/070-audio git checkout d8c6f041fe8bea7aa7b9b95632d7ddfb3f6c06f4 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash sound/soc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from sound/soc/soc-ops.c:25: In file included from include/sound/soc.h:18: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from sound/soc/soc-ops.c:25: In file included from include/sound/soc.h:18: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from sound/soc/soc-ops.c:25: In file included from include/sound/soc.h:18: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> sound/soc/soc-ops.c:812:5: warning: stack frame size (1048) exceeds limit (1024) in 'snd_soc_set_enum_kctl' [-Wframe-larger-than] int snd_soc_set_enum_kctl(struct snd_soc_card *card, ^ 7 warnings generated. vim +/snd_soc_set_enum_kctl +812 sound/soc/soc-ops.c 801 802 /** 803 * snd_soc_set_enum_kctl - Set enumerated controls matching a pattern 804 * 805 * @card: where to look for the controls 806 * @name: name pattern 807 * @value: string value to set the controls to 808 * 809 * Return number of matching and set controls on success, else error. 810 * No controls need to match. 811 */ > 812 int snd_soc_set_enum_kctl(struct snd_soc_card *card, 813 const char *name, const char *value) 814 { 815 struct snd_kcontrol *kctl; 816 int hits = 0; 817 int ret; 818 819 /* Sanity check for name */ 820 if (unlikely(!name)) 821 return -EINVAL; 822 823 list_for_each_entry(kctl, &card->snd_card->controls, list) { 824 if (!soc_control_matches(kctl, name)) 825 continue; 826 827 ret = soc_set_enum_kctl(kctl, value); 828 if (ret < 0) 829 return ret; 830 hits++; 831 } 832 833 if (!hits) 834 return -EINVAL; 835 836 return hits; 837 } 838 EXPORT_SYMBOL_GPL(snd_soc_set_enum_kctl); 839 -- 0-DAY CI Kernel Test Service https://01.org/lkp