All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 7722/11059] sound/core/control_led.c:58:12: warning: stack frame size of 1040 bytes in function 'snd_ctl_led_get'
@ 2021-04-09 11:44 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-09 11:44 UTC (permalink / raw)
  To: Jaroslav Kysela
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List,
	Takashi Iwai

[-- Attachment #1: Type: text/plain, Size: 4565 bytes --]

Hi Jaroslav,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6145d80cfc62e3ed8f16ff584d6287e6d88b82b9
commit: e65bf99718b538c2f34e9444dfe1087789b58f94 [7722/11059] ALSA: HDA - remove the custom implementation for the audio LED trigger
config: mips-randconfig-r016-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e65bf99718b538c2f34e9444dfe1087789b58f94
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout e65bf99718b538c2f34e9444dfe1087789b58f94
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/core/control_led.c:58:12: warning: stack frame size of 1040 bytes in function 'snd_ctl_led_get' [-Wframe-larger-than=]
   static int snd_ctl_led_get(struct snd_ctl_led *lctl)
              ^
   1 warning generated.


vim +/snd_ctl_led_get +58 sound/core/control_led.c

22d8de62f11b28 Jaroslav Kysela 2021-03-17  57  
22d8de62f11b28 Jaroslav Kysela 2021-03-17 @58  static int snd_ctl_led_get(struct snd_ctl_led *lctl)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  59  {
22d8de62f11b28 Jaroslav Kysela 2021-03-17  60  	struct snd_kcontrol *kctl = lctl->kctl;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  61  	struct snd_ctl_elem_info info;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  62  	struct snd_ctl_elem_value value;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  63  	unsigned int i;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  64  	int result;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  65  
22d8de62f11b28 Jaroslav Kysela 2021-03-17  66  	memset(&info, 0, sizeof(info));
22d8de62f11b28 Jaroslav Kysela 2021-03-17  67  	info.id = kctl->id;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  68  	info.id.index += lctl->index_offset;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  69  	info.id.numid += lctl->index_offset;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  70  	result = kctl->info(kctl, &info);
22d8de62f11b28 Jaroslav Kysela 2021-03-17  71  	if (result < 0)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  72  		return -1;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  73  	memset(&value, 0, sizeof(value));
22d8de62f11b28 Jaroslav Kysela 2021-03-17  74  	value.id = info.id;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  75  	result = kctl->get(kctl, &value);
22d8de62f11b28 Jaroslav Kysela 2021-03-17  76  	if (result < 0)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  77  		return -1;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  78  	if (info.type == SNDRV_CTL_ELEM_TYPE_BOOLEAN ||
22d8de62f11b28 Jaroslav Kysela 2021-03-17  79  	    info.type == SNDRV_CTL_ELEM_TYPE_INTEGER) {
22d8de62f11b28 Jaroslav Kysela 2021-03-17  80  		for (i = 0; i < info.count; i++)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  81  			if (value.value.integer.value[i] != info.value.integer.min)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  82  				return 1;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  83  	} else if (info.type == SNDRV_CTL_ELEM_TYPE_INTEGER64) {
22d8de62f11b28 Jaroslav Kysela 2021-03-17  84  		for (i = 0; i < info.count; i++)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  85  			if (value.value.integer64.value[i] != info.value.integer64.min)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  86  				return 1;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  87  	}
22d8de62f11b28 Jaroslav Kysela 2021-03-17  88  	return 0;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  89  }
22d8de62f11b28 Jaroslav Kysela 2021-03-17  90  

:::::: The code at line 58 was first introduced by commit
:::::: 22d8de62f11b287b279f1d4473a78c7d5e53e7bc ALSA: control - add generic LED trigger module as the new control layer

:::::: TO: Jaroslav Kysela <perex@perex.cz>
:::::: CC: Takashi Iwai <tiwai@suse.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35504 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [linux-next:master 7722/11059] sound/core/control_led.c:58:12: warning: stack frame size of 1040 bytes in function 'snd_ctl_led_get'
@ 2021-04-09 11:44 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-04-09 11:44 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4642 bytes --]

Hi Jaroslav,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6145d80cfc62e3ed8f16ff584d6287e6d88b82b9
commit: e65bf99718b538c2f34e9444dfe1087789b58f94 [7722/11059] ALSA: HDA - remove the custom implementation for the audio LED trigger
config: mips-randconfig-r016-20210409 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e65bf99718b538c2f34e9444dfe1087789b58f94
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout e65bf99718b538c2f34e9444dfe1087789b58f94
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> sound/core/control_led.c:58:12: warning: stack frame size of 1040 bytes in function 'snd_ctl_led_get' [-Wframe-larger-than=]
   static int snd_ctl_led_get(struct snd_ctl_led *lctl)
              ^
   1 warning generated.


vim +/snd_ctl_led_get +58 sound/core/control_led.c

22d8de62f11b28 Jaroslav Kysela 2021-03-17  57  
22d8de62f11b28 Jaroslav Kysela 2021-03-17 @58  static int snd_ctl_led_get(struct snd_ctl_led *lctl)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  59  {
22d8de62f11b28 Jaroslav Kysela 2021-03-17  60  	struct snd_kcontrol *kctl = lctl->kctl;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  61  	struct snd_ctl_elem_info info;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  62  	struct snd_ctl_elem_value value;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  63  	unsigned int i;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  64  	int result;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  65  
22d8de62f11b28 Jaroslav Kysela 2021-03-17  66  	memset(&info, 0, sizeof(info));
22d8de62f11b28 Jaroslav Kysela 2021-03-17  67  	info.id = kctl->id;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  68  	info.id.index += lctl->index_offset;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  69  	info.id.numid += lctl->index_offset;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  70  	result = kctl->info(kctl, &info);
22d8de62f11b28 Jaroslav Kysela 2021-03-17  71  	if (result < 0)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  72  		return -1;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  73  	memset(&value, 0, sizeof(value));
22d8de62f11b28 Jaroslav Kysela 2021-03-17  74  	value.id = info.id;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  75  	result = kctl->get(kctl, &value);
22d8de62f11b28 Jaroslav Kysela 2021-03-17  76  	if (result < 0)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  77  		return -1;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  78  	if (info.type == SNDRV_CTL_ELEM_TYPE_BOOLEAN ||
22d8de62f11b28 Jaroslav Kysela 2021-03-17  79  	    info.type == SNDRV_CTL_ELEM_TYPE_INTEGER) {
22d8de62f11b28 Jaroslav Kysela 2021-03-17  80  		for (i = 0; i < info.count; i++)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  81  			if (value.value.integer.value[i] != info.value.integer.min)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  82  				return 1;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  83  	} else if (info.type == SNDRV_CTL_ELEM_TYPE_INTEGER64) {
22d8de62f11b28 Jaroslav Kysela 2021-03-17  84  		for (i = 0; i < info.count; i++)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  85  			if (value.value.integer64.value[i] != info.value.integer64.min)
22d8de62f11b28 Jaroslav Kysela 2021-03-17  86  				return 1;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  87  	}
22d8de62f11b28 Jaroslav Kysela 2021-03-17  88  	return 0;
22d8de62f11b28 Jaroslav Kysela 2021-03-17  89  }
22d8de62f11b28 Jaroslav Kysela 2021-03-17  90  

:::::: The code@line 58 was first introduced by commit
:::::: 22d8de62f11b287b279f1d4473a78c7d5e53e7bc ALSA: control - add generic LED trigger module as the new control layer

:::::: TO: Jaroslav Kysela <perex@perex.cz>
:::::: CC: Takashi Iwai <tiwai@suse.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35504 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-09 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 11:44 [linux-next:master 7722/11059] sound/core/control_led.c:58:12: warning: stack frame size of 1040 bytes in function 'snd_ctl_led_get' kernel test robot
2021-04-09 11:44 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.