tree:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.7
head: 101247a3b86e1cc0e382b7e887a56176290fc957
commit: 5a309875787db47d69610e45f00a727ef9e62aa0 [142/192] ASoC: Fix SND_SOC_ALL_CODECS
imply ac97 fallout
config: arm-eseries_pxa_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 5a309875787db47d69610e45f00a727ef9e62aa0
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
sound/soc/codecs/wm9712.c: In function 'wm9712_volatile_reg':
sound/soc/codecs/wm9712.c:80:10: error: implicit declaration of function
'regmap_ac97_default_volatile' [-Werror=implicit-function-declaration]
80 | return regmap_ac97_default_volatile(dev, reg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm9712.c: At top level:
sound/soc/codecs/wm9712.c:84:21: error: variable 'wm9712_regmap_config' has
initializer but incomplete type
84 | static const struct regmap_config wm9712_regmap_config = {
| ^~~~~~~~~~~~~
sound/soc/codecs/wm9712.c:85:3: error: 'const struct regmap_config' has no
member named 'reg_bits'
85 | .reg_bits = 16,
| ^~~~~~~~
sound/soc/codecs/wm9712.c:85:14: warning: excess elements in struct initializer
85 | .reg_bits = 16,
| ^~
sound/soc/codecs/wm9712.c:85:14: note: (near initialization for
'wm9712_regmap_config')
sound/soc/codecs/wm9712.c:86:3: error: 'const struct regmap_config' has no
member named 'reg_stride'
86 | .reg_stride = 2,
| ^~~~~~~~~~
sound/soc/codecs/wm9712.c:86:16: warning: excess elements in struct initializer
86 | .reg_stride = 2,
| ^
sound/soc/codecs/wm9712.c:86:16: note: (near initialization for
'wm9712_regmap_config')
sound/soc/codecs/wm9712.c:87:3: error: 'const struct regmap_config' has no
member named 'val_bits'
87 | .val_bits = 16,
| ^~~~~~~~
sound/soc/codecs/wm9712.c:87:14: warning: excess elements in struct initializer
87 | .val_bits = 16,
| ^~
sound/soc/codecs/wm9712.c:87:14: note: (near initialization for
'wm9712_regmap_config')
sound/soc/codecs/wm9712.c:88:3: error: 'const struct regmap_config' has no
member named 'max_register'
88 | .max_register = 0x7e,
| ^~~~~~~~~~~~
sound/soc/codecs/wm9712.c:88:18: warning: excess elements in struct initializer
88 | .max_register = 0x7e,
| ^~~~
sound/soc/codecs/wm9712.c:88:18: note: (near initialization for
'wm9712_regmap_config')
sound/soc/codecs/wm9712.c:89:3: error: 'const struct regmap_config' has no
member named 'cache_type'
89 | .cache_type = REGCACHE_RBTREE,
| ^~~~~~~~~~
sound/soc/codecs/wm9712.c:89:16: warning: excess elements in struct initializer
89 | .cache_type = REGCACHE_RBTREE,
| ^~~~~~~~~~~~~~~
sound/soc/codecs/wm9712.c:89:16: note: (near initialization for
'wm9712_regmap_config')
sound/soc/codecs/wm9712.c:91:3: error: 'const struct regmap_config' has no
member named 'volatile_reg'
91 | .volatile_reg = wm9712_volatile_reg,
| ^~~~~~~~~~~~
sound/soc/codecs/wm9712.c:91:18: warning: excess elements in struct initializer
91 | .volatile_reg = wm9712_volatile_reg,
| ^~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm9712.c:91:18: note: (near initialization for
'wm9712_regmap_config')
sound/soc/codecs/wm9712.c:93:3: error: 'const struct regmap_config' has no
member named 'reg_defaults'
93 | .reg_defaults = wm9712_reg_defaults,
| ^~~~~~~~~~~~
sound/soc/codecs/wm9712.c:93:18: warning: excess elements in struct initializer
93 | .reg_defaults = wm9712_reg_defaults,
| ^~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm9712.c:93:18: note: (near initialization for
'wm9712_regmap_config')
sound/soc/codecs/wm9712.c:94:3: error: 'const struct regmap_config' has no
member named 'num_reg_defaults'
94 | .num_reg_defaults = ARRAY_SIZE(wm9712_reg_defaults),
| ^~~~~~~~~~~~~~~~
In file included from include/asm-generic/bug.h:19,
from arch/arm/include/asm/bug.h:60,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from sound/soc/codecs/wm9712.c:10:
include/linux/kernel.h:47:25: warning: excess elements in struct initializer
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
| ^
sound/soc/codecs/wm9712.c:94:22: note: in expansion of macro 'ARRAY_SIZE'
94 | .num_reg_defaults = ARRAY_SIZE(wm9712_reg_defaults),
| ^~~~~~~~~~
include/linux/kernel.h:47:25: note: (near initialization for
'wm9712_regmap_config')
47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) +
__must_be_array(arr))
| ^
sound/soc/codecs/wm9712.c:94:22: note: in expansion of macro 'ARRAY_SIZE'
94 | .num_reg_defaults = ARRAY_SIZE(wm9712_reg_defaults),
| ^~~~~~~~~~
sound/soc/codecs/wm9712.c: In function 'wm9712_soc_probe':
> sound/soc/codecs/wm9712.c:653:12: error: implicit declaration of
function 'regmap_init_ac97' [-Werror=implicit-function-declaration]
653
| regmap = regmap_init_ac97(wm9712->ac97, &wm9712_regmap_config);
| ^~~~~~~~~~~~~~~~
> sound/soc/codecs/wm9712.c:653:10: warning: assignment to
'struct regmap *' from 'int' makes pointer from integer without a cast
[-Wint-conversion]
653 | regmap = regmap_init_ac97(wm9712->ac97,
&wm9712_regmap_config);
| ^
sound/soc/codecs/wm9712.c:662:2: error: implicit declaration of function
'snd_soc_component_init_regmap'; did you mean 'snd_soc_component_trigger'?
[-Werror=implicit-function-declaration]
662 | snd_soc_component_init_regmap(component, regmap);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| snd_soc_component_trigger
sound/soc/codecs/wm9712.c: In function 'wm9712_soc_remove':
sound/soc/codecs/wm9712.c:675:3: error: implicit declaration of function
'snd_soc_component_exit_regmap'; did you mean 'snd_soc_component_trigger'?
[-Werror=implicit-function-declaration]
675 | snd_soc_component_exit_regmap(component);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| snd_soc_component_trigger
sound/soc/codecs/wm9712.c: At top level:
sound/soc/codecs/wm9712.c:84:35: error: storage size of 'wm9712_regmap_config'
isn't known
84 | static const struct regmap_config wm9712_regmap_config = {
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/regmap_init_ac97 +653 sound/soc/codecs/wm9712.c
10c5cf30446fe91 Richard Purdie 2006-10-06 632
143b44845d87042 Kuninori Morimoto 2018-01-29 633 static int wm9712_soc_probe(struct
snd_soc_component *component)
10c5cf30446fe91 Richard Purdie 2006-10-06 634 {
143b44845d87042 Kuninori Morimoto 2018-01-29 635 struct wm9712_priv *wm9712 =
snd_soc_component_get_drvdata(component);
b4f4f2eba4e8f71 Lars-Peter Clausen 2016-09-30 636 struct regmap *regmap;
10c5cf30446fe91 Richard Purdie 2006-10-06 637
2ed1a8e0ce8db6d Robert Jarzmik 2017-09-13 638 if (wm9712->mfd_pdata) {
2ed1a8e0ce8db6d Robert Jarzmik 2017-09-13 639 wm9712->ac97 =
wm9712->mfd_pdata->ac97;
2ed1a8e0ce8db6d Robert Jarzmik 2017-09-13 640 regmap =
wm9712->mfd_pdata->regmap;
576ce4075bfa0f0 Arnd Bergmann 2018-11-02 641 } else if
(IS_ENABLED(CONFIG_SND_SOC_AC97_BUS)) {
18380dcc52cc896 Arnd Bergmann 2018-09-26 642 int ret;
18380dcc52cc896 Arnd Bergmann 2018-09-26 643
143b44845d87042 Kuninori Morimoto 2018-01-29 644 wm9712->ac97 =
snd_soc_new_ac97_component(component, WM9712_VENDOR_ID,
a575be4cbb95124 Lars-Peter Clausen 2015-07-21 645 WM9712_VENDOR_ID_MASK);
358a8bb56284205 Lars-Peter Clausen 2014-11-10 646 if (IS_ERR(wm9712->ac97)) {
358a8bb56284205 Lars-Peter Clausen 2014-11-10 647 ret = PTR_ERR(wm9712->ac97);
143b44845d87042 Kuninori Morimoto 2018-01-29 648 dev_err(component->dev,
2ed1a8e0ce8db6d Robert Jarzmik 2017-09-13 649 "Failed to register AC97
codec: %d\n", ret);
f0fba2ad1b6b53d Liam Girdwood 2010-03-17 650 return ret;
e35115a58856ced Liam Girdwood 2007-01-31 651 }
10c5cf30446fe91 Richard Purdie 2006-10-06 652
b4f4f2eba4e8f71 Lars-Peter Clausen 2016-09-30 @653 regmap =
regmap_init_ac97(wm9712->ac97, &wm9712_regmap_config);
b4f4f2eba4e8f71 Lars-Peter Clausen 2016-09-30 654 if (IS_ERR(regmap)) {
143b44845d87042 Kuninori Morimoto 2018-01-29 655
snd_soc_free_ac97_component(wm9712->ac97);
6bd25aae3a9bc7e Robert Jarzmik 2017-10-14 656 return PTR_ERR(regmap);
5aa3b03ad0712e3 Mark Brown 2017-09-20 657 }
576ce4075bfa0f0 Arnd Bergmann 2018-11-02 658 } else {
576ce4075bfa0f0 Arnd Bergmann 2018-11-02 659 return -ENXIO;
b4f4f2eba4e8f71 Lars-Peter Clausen 2016-09-30 660 }
b4f4f2eba4e8f71 Lars-Peter Clausen 2016-09-30 661
143b44845d87042 Kuninori Morimoto 2018-01-29 662
snd_soc_component_init_regmap(component, regmap);
b4f4f2eba4e8f71 Lars-Peter Clausen 2016-09-30 663
10c5cf30446fe91 Richard Purdie 2006-10-06 664 /* set alc mux to none */
143b44845d87042 Kuninori Morimoto 2018-01-29 665
snd_soc_component_update_bits(component, AC97_VIDEO, 0x3000, 0x3000);
10c5cf30446fe91 Richard Purdie 2006-10-06 666
10c5cf30446fe91 Richard Purdie 2006-10-06 667 return 0;
10c5cf30446fe91 Richard Purdie 2006-10-06 668 }
10c5cf30446fe91 Richard Purdie 2006-10-06 669
:::::: The code at line 653 was first introduced by commit
:::::: b4f4f2eba4e8f717ccd1bb2a35c602ad00dcdfe0 ASoC: wm9712: Convert to regmap
:::::: TO: Lars-Peter Clausen <lars(a)metafoo.de>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org