From: kernel test robot <lkp@intel.com>
To: Jaroslav Kysela <perex@perex.cz>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
Linux Memory Management List <linux-mm@kvack.org>,
Takashi Iwai <tiwai@suse.de>
Subject: [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'
Date: Fri, 9 Apr 2021 19:44:06 +0800 [thread overview]
Message-ID: <202104091954.rCTlyIHV-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-04-09 11:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202104091954.rCTlyIHV-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox