tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: 54c764fdd34196bcea7e02985cac4e4dc801593e
commit: 544bc70072f2f0d2d0aeee6999a00b1bfcd47b4a [16/34] BACKPORT: UPSTREAM: ASoC:
max98357a: use mdelay for sdmode-delay
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.4
git checkout 544bc70072f2f0d2d0aeee6999a00b1bfcd47b4a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the chrome-os/chromeos-4.4 HEAD 54c764fdd34196bcea7e02985cac4e4dc801593e builds
fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from sound/soc/codecs/max98357a.c:25:0:
include/sound/pcm.h: In function 'snd_pcm_chmap_substream':
include/sound/pcm.h:1372:17: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
if (s->number == idx)
^~
sound/soc/codecs/max98357a.c: In function 'max98357a_daiops_trigger':
> sound/soc/codecs/max98357a.c:47:3: error: implicit declaration of
function 'mdelay' [-Werror=implicit-function-declaration]
mdelay(max98357a->sdmode_delay);
^~~~~~
cc1: some warnings being treated as errors
vim +/mdelay +47 sound/soc/codecs/max98357a.c
34
35 static int max98357a_daiops_trigger(struct snd_pcm_substream *substream,
36 int cmd, struct snd_soc_dai *dai)
37 {
38 struct max98357a_priv *max98357a = snd_soc_dai_get_drvdata(dai);
39
40 if (!max98357a->sdmode)
41 return 0;
42
43 switch (cmd) {
44 case SNDRV_PCM_TRIGGER_START:
45 case SNDRV_PCM_TRIGGER_RESUME:
46 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
47 mdelay(max98357a->sdmode_delay);
48 gpiod_set_value(max98357a->sdmode, 1);
49 break;
50 case SNDRV_PCM_TRIGGER_STOP:
51 case SNDRV_PCM_TRIGGER_SUSPEND:
52 case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
53 gpiod_set_value(max98357a->sdmode, 0);
54 break;
55 }
56
57 return 0;
58 }
59
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org