Re: [alsa-devel] [PATCH] ASoC: wm9713: convert to regmap

From: kbuild test robot
Date: Sat Oct 24 2015 - 16:39:34 EST


Hi Robert,

[auto build test ERROR on asoc/for-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url: https://github.com/0day-ci/linux/commits/Robert-Jarzmik/ASoC-wm9713-convert-to-regmap/20151025-042116
config: xtensa-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All error/warnings (new ones prefixed by >>):

In file included from include/linux/list.h:8:0,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from sound/soc/codecs/wm9713.c:19:
sound/soc/codecs/wm9713.c: In function 'wm9713_soc_resume':
>> sound/soc/codecs/wm9713.c:1199:30: error: 'wm9713_reg' undeclared (first use in this function)
for (i = 2; i < ARRAY_SIZE(wm9713_reg) << 1; i += 2) {
^
include/linux/kernel.h:54:33: note: in definition of macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^
sound/soc/codecs/wm9713.c:1199:30: note: each undeclared identifier is reported only once for each function it appears in
for (i = 2; i < ARRAY_SIZE(wm9713_reg) << 1; i += 2) {
^
include/linux/kernel.h:54:33: note: in definition of macro 'ARRAY_SIZE'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^
In file included from include/linux/thread_info.h:11:0,
from include/asm-generic/preempt.h:4,
from arch/xtensa/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:64,
from include/linux/spinlock.h:50,
from include/linux/mmzone.h:7,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from sound/soc/codecs/wm9713.c:19:
include/linux/bug.h:33:45: error: bit-field '<anonymous>' width not an integer constant
#define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
^
include/linux/compiler-gcc.h:64:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^
include/linux/kernel.h:54:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^
>> sound/soc/codecs/wm9713.c:1199:19: note: in expansion of macro 'ARRAY_SIZE'
for (i = 2; i < ARRAY_SIZE(wm9713_reg) << 1; i += 2) {
^

vim +/wm9713_reg +1199 sound/soc/codecs/wm9713.c

83ac08c084 Liam Girdwood 2008-02-15 1193 /* do we need to re-start the PLL ? */
c42f69bb06 Mark Brown 2009-01-16 1194 if (wm9713->pll_in)
c42f69bb06 Mark Brown 2009-01-16 1195 wm9713_set_pll(codec, 0, wm9713->pll_in, 0);
83ac08c084 Liam Girdwood 2008-02-15 1196
83ac08c084 Liam Girdwood 2008-02-15 1197 /* only synchronise the codec if warm reset failed */
83ac08c084 Liam Girdwood 2008-02-15 1198 if (ret == 0) {
83ac08c084 Liam Girdwood 2008-02-15 @1199 for (i = 2; i < ARRAY_SIZE(wm9713_reg) << 1; i += 2) {
83ac08c084 Liam Girdwood 2008-02-15 1200 if (i == AC97_POWERDOWN || i == AC97_EXTENDED_MID ||
83ac08c084 Liam Girdwood 2008-02-15 1201 i == AC97_EXTENDED_MSTATUS || i > 0x66)
83ac08c084 Liam Girdwood 2008-02-15 1202 continue;

:::::: The code at line 1199 was first introduced by commit
:::::: 83ac08c0846bc6106d6c7fbb342eab02b32dd399 [ALSA] ASoC: WM9713 driver

:::::: TO: Liam Girdwood <liam.girdwood@xxxxxxxxxxxxxxxx>
:::::: CC: Takashi Iwai <tiwai@xxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data