* [plbossart-sound:fix/sparse-cppcheck-warnings 45/52] sound/aoa/codecs/toonie.c:129:49: error: 'toonie' undeclared
@ 2020-08-01 5:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-01 5:08 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2049 bytes --]
tree: https://github.com/thesofproject/linux fix/sparse-cppcheck-warnings
head: fbbfacaed9a8528ff7f26080a980605e6d932d9b
commit: 7e106c71b293750a7c59dd2406f8315dc6fda804 [45/52] ALSA: aoa: toonie: fix variable shadowing
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-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
git checkout 7e106c71b293750a7c59dd2406f8315dc6fda804
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
sound/aoa/codecs/toonie.c: In function 'toonie_init':
>> sound/aoa/codecs/toonie.c:129:49: error: 'toonie' undeclared (first use in this function)
129 | strlcpy(toonie_s->codec.name, "toonie", sizeof(toonie->codec.name));
| ^~~~~~
sound/aoa/codecs/toonie.c:129:49: note: each undeclared identifier is reported only once for each function it appears in
vim +/toonie +129 sound/aoa/codecs/toonie.c
121
122 static int __init toonie_init(void)
123 {
124 toonie_s = kzalloc(sizeof(struct toonie), GFP_KERNEL);
125
126 if (!toonie_s)
127 return -ENOMEM;
128
> 129 strlcpy(toonie_s->codec.name, "toonie", sizeof(toonie->codec.name));
130 toonie_s->codec.owner = THIS_MODULE;
131 toonie_s->codec.init = toonie_init_codec;
132 toonie_s->codec.exit = toonie_exit_codec;
133
134 if (aoa_codec_register(&toonie_s->codec)) {
135 kfree(toonie_s);
136 return -EINVAL;
137 }
138
139 return 0;
140 }
141
---
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: 69851 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-01 5:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01 5:08 [plbossart-sound:fix/sparse-cppcheck-warnings 45/52] sound/aoa/codecs/toonie.c:129:49: error: 'toonie' undeclared 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.