CC sound/soc/codecs/tlv320aic32x4.o ../sound/soc/codecs/tlv320aic32x4.c:599:12: error: conflicting types for ‘aic32x4_probe’ static int aic32x4_probe(struct snd_soc_codec *codec) ^~~~~~~~~~~~~ In file included from ../sound/soc/codecs/tlv320aic32x4.c:48:0: ../sound/soc/codecs/tlv320aic32x4.h:17:5: note: previous declaration of ‘aic32x4_probe’ was here int aic32x4_probe(struct device *dev, struct regmap *regmap); ^~~~~~~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:715:3: error: ‘struct snd_soc_codec_driver’ has no member named ‘controls’ .controls = aic32x4_snd_controls, ^~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:715:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .controls = aic32x4_snd_controls, ^~~~~~~~~~~~~~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:715:14: note: (near initialization for ‘soc_codec_dev_aic32x4.seq_notifier’) ../sound/soc/codecs/tlv320aic32x4.c:716:3: error: ‘struct snd_soc_codec_driver’ has no member named ‘num_controls’ .num_controls = ARRAY_SIZE(aic32x4_snd_controls), ^~~~~~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:717:3: error: ‘struct snd_soc_codec_driver’ has no member named ‘dapm_widgets’ .dapm_widgets = aic32x4_dapm_widgets, ^~~~~~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:717:18: warning: excess elements in struct initializer .dapm_widgets = aic32x4_dapm_widgets, ^~~~~~~~~~~~~~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:717:18: note: (near initialization for ‘soc_codec_dev_aic32x4’) ../sound/soc/codecs/tlv320aic32x4.c:718:3: error: ‘struct snd_soc_codec_driver’ has no member named ‘num_dapm_widgets’ .num_dapm_widgets = ARRAY_SIZE(aic32x4_dapm_widgets), ^~~~~~~~~~~~~~~~ In file included from ../include/linux/list.h:8:0, from ../include/linux/module.h:9, from ../sound/soc/codecs/tlv320aic32x4.c:26: ../include/linux/kernel.h:54:25: warning: excess elements in struct initializer #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ ../sound/soc/codecs/tlv320aic32x4.c:718:22: note: in expansion of macro ‘ARRAY_SIZE’ .num_dapm_widgets = ARRAY_SIZE(aic32x4_dapm_widgets), ^~~~~~~~~~ ../include/linux/kernel.h:54:25: note: (near initialization for ‘soc_codec_dev_aic32x4’) #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ ../sound/soc/codecs/tlv320aic32x4.c:718:22: note: in expansion of macro ‘ARRAY_SIZE’ .num_dapm_widgets = ARRAY_SIZE(aic32x4_dapm_widgets), ^~~~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:719:3: error: ‘struct snd_soc_codec_driver’ has no member named ‘dapm_routes’ .dapm_routes = aic32x4_dapm_routes, ^~~~~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:719:17: warning: excess elements in struct initializer .dapm_routes = aic32x4_dapm_routes, ^~~~~~~~~~~~~~~~~~~ ../sound/soc/codecs/tlv320aic32x4.c:719:17: note: (near initialization for ‘soc_codec_dev_aic32x4’) ../sound/soc/codecs/tlv320aic32x4.c:720:3: error: ‘struct snd_soc_codec_driver’ has no member named ‘num_dapm_routes’ .num_dapm_routes = ARRAY_SIZE(aic32x4_dapm_routes), ^~~~~~~~~~~~~~~ In file included from ../include/linux/list.h:8:0, from ../include/linux/module.h:9, from ../sound/soc/codecs/tlv320aic32x4.c:26: ../include/linux/kernel.h:54:25: warning: excess elements in struct initializer #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ ../sound/soc/codecs/tlv320aic32x4.c:720:21: note: in expansion of macro ‘ARRAY_SIZE’ .num_dapm_routes = ARRAY_SIZE(aic32x4_dapm_routes), ^~~~~~~~~~ ../include/linux/kernel.h:54:25: note: (near initialization for ‘soc_codec_dev_aic32x4’) #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^ ../sound/soc/codecs/tlv320aic32x4.c:720:21: note: in expansion of macro ‘ARRAY_SIZE’ .num_dapm_routes = ARRAY_SIZE(aic32x4_dapm_routes), ^~~~~~~~~~ cc1: some warnings being treated as errors ../scripts/Makefile.build:335: recipe for target 'sound/soc/codecs/tlv320aic32x4.o' failed make[4]: *** [sound/soc/codecs/tlv320aic32x4.o] Error 1 ../scripts/Makefile.build:649: recipe for target 'sound/soc/codecs' failed make[3]: *** [sound/soc/codecs] Error 2 ../scripts/Makefile.build:649: recipe for target 'sound/soc' failed make[2]: *** [sound/soc] Error 2 /home/parashuram/Linux_for_Tegra/sources/kernel/kernel-4.9/Makefile:1104: recipe for target 'sound' failed make[1]: *** [sound] Error 2 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/parashuram/Linux_for_Tegra/sources/kernel/kernel-4.9/out' Makefile:171: recipe for target 'sub-make' failed make: *** [sub-make] Error 2