Hi Ryan, [auto build test ERROR on asoc/for-next] [also build test ERROR on v4.9-rc6 next-20161123] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ryan-Lee/ALSA-SoC-MAX98927-driver-Initial-release/20161124-004840 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: i386-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): >> sound/soc/codecs/max98927.c:755:2: error: unknown field 'dapm_routes' specified in initializer .dapm_routes = max98927_audio_map, ^ >> sound/soc/codecs/max98927.c:755:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .dapm_routes = max98927_audio_map, ^~~~~~~~~~~~~~~~~~ sound/soc/codecs/max98927.c:755:17: note: (near initialization for 'soc_codec_dev_max98927.remove') >> sound/soc/codecs/max98927.c:756:2: error: unknown field 'num_dapm_routes' specified in initializer .num_dapm_routes = ARRAY_SIZE(max98927_audio_map), ^ In file included from include/linux/delay.h:10:0, from sound/soc/codecs/max98927.c:13: >> include/linux/kernel.h:53:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion] #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ >> sound/soc/codecs/max98927.c:756:21: note: in expansion of macro 'ARRAY_SIZE' .num_dapm_routes = ARRAY_SIZE(max98927_audio_map), ^~~~~~~~~~ include/linux/kernel.h:53:25: note: (near initialization for 'soc_codec_dev_max98927.suspend') #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ >> sound/soc/codecs/max98927.c:756:21: note: in expansion of macro 'ARRAY_SIZE' .num_dapm_routes = ARRAY_SIZE(max98927_audio_map), ^~~~~~~~~~ >> sound/soc/codecs/max98927.c:757:2: error: unknown field 'dapm_widgets' specified in initializer .dapm_widgets = max98927_dapm_widgets, ^ sound/soc/codecs/max98927.c:757:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .dapm_widgets = max98927_dapm_widgets, ^~~~~~~~~~~~~~~~~~~~~ sound/soc/codecs/max98927.c:757:18: note: (near initialization for 'soc_codec_dev_max98927.resume') >> sound/soc/codecs/max98927.c:758:2: error: unknown field 'num_dapm_widgets' specified in initializer .num_dapm_widgets = ARRAY_SIZE(max98927_dapm_widgets), ^ In file included from include/linux/delay.h:10:0, from sound/soc/codecs/max98927.c:13: >> include/linux/kernel.h:53:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion] #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ sound/soc/codecs/max98927.c:758:22: note: in expansion of macro 'ARRAY_SIZE' .num_dapm_widgets = ARRAY_SIZE(max98927_dapm_widgets), ^~~~~~~~~~ include/linux/kernel.h:53:25: note: (near initialization for 'soc_codec_dev_max98927.component_driver.name') #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ sound/soc/codecs/max98927.c:758:22: note: in expansion of macro 'ARRAY_SIZE' .num_dapm_widgets = ARRAY_SIZE(max98927_dapm_widgets), ^~~~~~~~~~ >> sound/soc/codecs/max98927.c:759:2: error: unknown field 'controls' specified in initializer .controls = max98927_snd_controls, ^ sound/soc/codecs/max98927.c:759:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .controls = max98927_snd_controls, ^~~~~~~~~~~~~~~~~~~~~ sound/soc/codecs/max98927.c:759:14: note: (near initialization for 'soc_codec_dev_max98927.set_sysclk') >> sound/soc/codecs/max98927.c:760:2: error: unknown field 'num_controls' specified in initializer .num_controls = ARRAY_SIZE(max98927_snd_controls), ^ In file included from include/linux/delay.h:10:0, from sound/soc/codecs/max98927.c:13: >> include/linux/kernel.h:53:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion] #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ sound/soc/codecs/max98927.c:760:18: note: in expansion of macro 'ARRAY_SIZE' .num_controls = ARRAY_SIZE(max98927_snd_controls), ^~~~~~~~~~ include/linux/kernel.h:53:25: note: (near initialization for 'soc_codec_dev_max98927.set_pll') #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ sound/soc/codecs/max98927.c:760:18: note: in expansion of macro 'ARRAY_SIZE' .num_controls = ARRAY_SIZE(max98927_snd_controls), ^~~~~~~~~~ >> sound/soc/codecs/max98927.c:753:67: warning: missing braces around initializer [-Wmissing-braces] static const struct snd_soc_codec_driver soc_codec_dev_max98927 = { ^ sound/soc/codecs/max98927.c:753:67: note: (near initialization for 'soc_codec_dev_max98927') cc1: some warnings being treated as errors vim +/dapm_routes +755 sound/soc/codecs/max98927.c 747 748 max98927_handle_pdata(codec); 749 750 return ret; 751 } 752 > 753 static const struct snd_soc_codec_driver soc_codec_dev_max98927 = { 754 .probe = max98927_probe, > 755 .dapm_routes = max98927_audio_map, > 756 .num_dapm_routes = ARRAY_SIZE(max98927_audio_map), > 757 .dapm_widgets = max98927_dapm_widgets, > 758 .num_dapm_widgets = ARRAY_SIZE(max98927_dapm_widgets), > 759 .controls = max98927_snd_controls, > 760 .num_controls = ARRAY_SIZE(max98927_snd_controls), 761 }; 762 763 static const struct regmap_config max98927_regmap = { --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip