llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [asahilinux:bits/070-audio 8/39] sound/soc/soc-ops.c:817:5: warning: stack frame size (1072) exceeds limit (1024) in 'snd_soc_set_enum_kctl'
@ 2023-03-26  0:26 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-26  0:26 UTC (permalink / raw)
  To: Martin Povišer; +Cc: llvm, oe-kbuild-all, Hector Martin

tree:   https://github.com/AsahiLinux/linux bits/070-audio
head:   b4adc8d4b163c456483eded9c3b6b1082b8feb40
commit: e44f313d4ee5114ffdf399b048f8fcab0a177ba5 [8/39] ASoC: ops: Introduce 'soc_set_enum_kctl'
config: riscv-randconfig-r032-20230326 (https://download.01.org/0day-ci/archive/20230326/202303260852.KupV2smW-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv-linux-gnu
        # https://github.com/AsahiLinux/linux/commit/e44f313d4ee5114ffdf399b048f8fcab0a177ba5
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux bits/070-audio
        git checkout e44f313d4ee5114ffdf399b048f8fcab0a177ba5
        # 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=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash sound/soc/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303260852.KupV2smW-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> sound/soc/soc-ops.c:817:5: warning: stack frame size (1072) exceeds limit (1024) in 'snd_soc_set_enum_kctl' [-Wframe-larger-than]
   int snd_soc_set_enum_kctl(struct snd_soc_card *card,
       ^
   84/1072 (7.84%) spills, 988/1072 (92.16%) variables
   1 warning generated.


vim +/snd_soc_set_enum_kctl +817 sound/soc/soc-ops.c

   806	
   807	/**
   808	 * snd_soc_set_enum_kctl - Set enumerated controls matching a pattern
   809	 *
   810	 * @card: where to look for the controls
   811	 * @name: name pattern
   812	 * @value: string value to set the controls to
   813	 *
   814	 * Return number of matching and set controls on success, else error.
   815	 * No controls need to match.
   816	 */
 > 817	int snd_soc_set_enum_kctl(struct snd_soc_card *card,
   818		const char *name, const char *value)
   819	{
   820		struct snd_kcontrol *kctl;
   821		int hits = 0;
   822		int ret;
   823	
   824		/* Sanity check for name */
   825		if (unlikely(!name))
   826			return -EINVAL;
   827	
   828		list_for_each_entry(kctl, &card->snd_card->controls, list) {
   829			if (!soc_control_matches(kctl, name))
   830				continue;
   831	
   832			ret = soc_set_enum_kctl(kctl, value);
   833			if (ret < 0)
   834				return ret;
   835			hits++;
   836		}
   837	
   838		if (!hits)
   839			return -EINVAL;
   840	
   841		return hits;
   842	}
   843	EXPORT_SYMBOL_GPL(snd_soc_set_enum_kctl);
   844	

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

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

only message in thread, other threads:[~2023-03-26  0:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-26  0:26 [asahilinux:bits/070-audio 8/39] sound/soc/soc-ops.c:817:5: warning: stack frame size (1072) exceeds limit (1024) in 'snd_soc_set_enum_kctl' 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;
as well as URLs for NNTP newsgroup(s).