arch/sh/boards/mach-se/7724/setup.c:304:27: warning: excess elements in struct initializer
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git v5_20230927_wangweidong_a_asoc_codecs_add_aw87390_amplifier_driver head: cadf6ebe01b1b5f5bdb2eab0652f30c084c92495 commit: ad484cc98f2c7ee8e22f63691562a7abae5a9832 [62/71] ASoC: remove asoc_xxx() compatible macro config: sh-se7724_defconfig (https://download.01.org/0day-ci/archive/20230928/[email protected]/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230928/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
arch/sh/boards/mach-se/7724/setup.c:303:15: error: variable 'fsi_ak4642_info' has initializer but incomplete type
303 | static struct asoc_simple_card_info fsi_ak4642_info = {
| ^~~~~~~~~~~~~~~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:304:10: error: 'struct asoc_simple_card_info' has no member named 'name'
304 | .name = "AK4642",
| ^~~~
>> arch/sh/boards/mach-se/7724/setup.c:304:27: warning: excess elements in struct initializer
304 | .name = "AK4642",
| ^~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:304:27: note: (near initialization for 'fsi_ak4642_info')
arch/sh/boards/mach-se/7724/setup.c:305:10: error: 'struct asoc_simple_card_info' has no member named 'card'
305 | .card = "FSIA-AK4642",
| ^~~~
arch/sh/boards/mach-se/7724/setup.c:305:27: warning: excess elements in struct initializer
305 | .card = "FSIA-AK4642",
| ^~~~~~~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:305:27: note: (near initialization for 'fsi_ak4642_info')
arch/sh/boards/mach-se/7724/setup.c:306:10: error: 'struct asoc_simple_card_info' has no member named 'codec'
306 | .codec = "ak4642-codec.0-0012",
| ^~~~~
arch/sh/boards/mach-se/7724/setup.c:306:27: warning: excess elements in struct initializer
306 | .codec = "ak4642-codec.0-0012",
| ^~~~~~~~~~~~~~~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:306:27: note: (near initialization for 'fsi_ak4642_info')
arch/sh/boards/mach-se/7724/setup.c:307:10: error: 'struct asoc_simple_card_info' has no member named 'platform'
307 | .platform = "sh_fsi.0",
| ^~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:307:27: warning: excess elements in struct initializer
307 | .platform = "sh_fsi.0",
| ^~~~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:307:27: note: (near initialization for 'fsi_ak4642_info')
arch/sh/boards/mach-se/7724/setup.c:308:10: error: 'struct asoc_simple_card_info' has no member named 'daifmt'
308 | .daifmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_CBP_CFP,
| ^~~~~~
In file included from include/sound/soc-topology.h:15,
from include/sound/soc-dapm.h:15,
from include/sound/soc.h:418,
from include/sound/sh_fsi.h:12,
from arch/sh/boards/mach-se/7724/setup.c:40:
>> include/uapi/sound/asoc.h:152:41: warning: excess elements in struct initializer
152 | #define SND_SOC_DAI_FORMAT_LEFT_J 3 /* Left Justified mode */
| ^
include/sound/soc-dai.h:29:41: note: in expansion of macro 'SND_SOC_DAI_FORMAT_LEFT_J'
29 | #define SND_SOC_DAIFMT_LEFT_J SND_SOC_DAI_FORMAT_LEFT_J
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:308:27: note: in expansion of macro 'SND_SOC_DAIFMT_LEFT_J'
308 | .daifmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_CBP_CFP,
| ^~~~~~~~~~~~~~~~~~~~~
include/uapi/sound/asoc.h:152:41: note: (near initialization for 'fsi_ak4642_info')
152 | #define SND_SOC_DAI_FORMAT_LEFT_J 3 /* Left Justified mode */
| ^
include/sound/soc-dai.h:29:41: note: in expansion of macro 'SND_SOC_DAI_FORMAT_LEFT_J'
29 | #define SND_SOC_DAIFMT_LEFT_J SND_SOC_DAI_FORMAT_LEFT_J
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:308:27: note: in expansion of macro 'SND_SOC_DAIFMT_LEFT_J'
308 | .daifmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_CBP_CFP,
| ^~~~~~~~~~~~~~~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:309:10: error: 'struct asoc_simple_card_info' has no member named 'cpu_dai'
309 | .cpu_dai = {
| ^~~~~~~
arch/sh/boards/mach-se/7724/setup.c:309:20: error: extra brace group at end of initializer
309 | .cpu_dai = {
| ^
arch/sh/boards/mach-se/7724/setup.c:309:20: note: (near initialization for 'fsi_ak4642_info')
arch/sh/boards/mach-se/7724/setup.c:309:20: warning: excess elements in struct initializer
arch/sh/boards/mach-se/7724/setup.c:309:20: note: (near initialization for 'fsi_ak4642_info')
arch/sh/boards/mach-se/7724/setup.c:312:10: error: 'struct asoc_simple_card_info' has no member named 'codec_dai'
312 | .codec_dai = {
| ^~~~~~~~~
arch/sh/boards/mach-se/7724/setup.c:312:22: error: extra brace group at end of initializer
312 | .codec_dai = {
| ^
arch/sh/boards/mach-se/7724/setup.c:312:22: note: (near initialization for 'fsi_ak4642_info')
arch/sh/boards/mach-se/7724/setup.c:312:22: warning: excess elements in struct initializer
arch/sh/boards/mach-se/7724/setup.c:312:22: note: (near initialization for 'fsi_ak4642_info')
arch/sh/boards/mach-se/7724/setup.c:303:37: error: storage size of 'fsi_ak4642_info' isn't known
303 | static struct asoc_simple_card_info fsi_ak4642_info = {
| ^~~~~~~~~~~~~~~vim +304 arch/sh/boards/mach-se/7724/setup.c
3e9ad52b95e259 Kuninori Morimoto 2009-08-21 302
af8a2fe12fae1b Kuninori Morimoto 2012-04-08 303 static struct asoc_simple_card_info fsi_ak4642_info = {
45f3121615b2b3 Kuninori Morimoto 2011-11-23 @304 .name = "AK4642",
45f3121615b2b3 Kuninori Morimoto 2011-11-23 305 .card = "FSIA-AK4642",
45f3121615b2b3 Kuninori Morimoto 2011-11-23 306 .codec = "ak4642-codec.0-0012",
45f3121615b2b3 Kuninori Morimoto 2011-11-23 307 .platform = "sh_fsi.0",
81a13ac7e3e490 Mark Brown 2021-09-15 308 .daifmt = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_CBP_CFP,
a4a2992c531f6c Kuninori Morimoto 2013-01-10 309 .cpu_dai = {
a4a2992c531f6c Kuninori Morimoto 2013-01-10 310 .name = "fsia-dai",
a4a2992c531f6c Kuninori Morimoto 2013-01-10 311 },
a4a2992c531f6c Kuninori Morimoto 2013-01-10 312 .codec_dai = {
a4a2992c531f6c Kuninori Morimoto 2013-01-10 313 .name = "ak4642-hifi",
a4a2992c531f6c Kuninori Morimoto 2013-01-10 314 .sysclk = 11289600,
a4a2992c531f6c Kuninori Morimoto 2013-01-10 315 },
45f3121615b2b3 Kuninori Morimoto 2011-11-23 316 };45f3121615b2b3 Kuninori Morimoto 2011-11-23 317
:::::: The code at line 304 was first introduced by commit
:::::: 45f3121615b2b354f7d95d30f795bc5fe0043e92 ASoC: fsi-ak4642: modify specification method of FSI / ak464x
:::::: TO: Kuninori Morimoto <[email protected]> :::::: CC: Mark Brown <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki