[alsa-devel] [asoc:topic/arizona 10/13] sound/soc/codecs/wm_adsp.c:758:8: error: implicit declaration of function 'wm_coeff_base_reg'

kbuild test robot fengguang.wu at intel.com
Fri Nov 11 20:40:07 CET 2016


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/arizona
head:   a23ebba845fee07cce00659c06844845b24da290
commit: f4f0c4c60c3959a8f3650850b799049161732e91 [10/13] ASoC: wm_adsp: Signal firmware shutdown through event control
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout f4f0c4c60c3959a8f3650850b799049161732e91
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   include/linux/compiler.h:253:8: sparse: attribute 'no_sanitize_address': unknown attribute
   sound/soc/codecs/wm_adsp.c:758:15: sparse: undefined identifier 'wm_coeff_base_reg'
   sound/soc/codecs/wm_adsp.c:762:9: sparse: undefined identifier 'wm_adsp_mem_region_name'
   sound/soc/codecs/wm_adsp.c:802:9: sparse: undefined identifier 'wm_adsp_mem_region_name'
   sound/soc/codecs/wm_adsp.c:1112:24: sparse: no member 'type' in struct wm_coeff_ctl
   sound/soc/codecs/wm_adsp.c: In function 'wm_coeff_write_acked_control':
>> sound/soc/codecs/wm_adsp.c:758:8: error: implicit declaration of function 'wm_coeff_base_reg' [-Werror=implicit-function-declaration]
     ret = wm_coeff_base_reg(ctl, &reg);
           ^~~~~~~~~~~~~~~~~
   In file included from include/linux/printk.h:305:0,
                    from include/linux/kernel.h:13,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from sound/soc/codecs/wm_adsp.c:13:
   sound/soc/codecs/wm_adsp.c:764:4: error: implicit declaration of function 'wm_adsp_mem_region_name' [-Werror=implicit-function-declaration]
       wm_adsp_mem_region_name(ctl->alg_region.type), ctl->offset);
       ^
   include/linux/dynamic_debug.h:135:9: note: in definition of macro 'dynamic_dev_dbg'
          ##__VA_ARGS__);  \
            ^~~~~~~~~~~
   sound/soc/codecs/wm_adsp.c:46:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(_dsp->dev, "DSP%d: " fmt, _dsp->num, ##__VA_ARGS__)
     ^~~~~~~
   sound/soc/codecs/wm_adsp.c:762:2: note: in expansion of macro 'adsp_dbg'
     adsp_dbg(dsp, "Sending 0x%x to acked control alg 0x%x %s:0x%x\n",
     ^~~~~~~~
   sound/soc/codecs/wm_adsp.c:46:21: warning: format '%s' expects argument of type 'char *', but argument 7 has type 'int' [-Wformat=]
     dev_dbg(_dsp->dev, "DSP%d: " fmt, _dsp->num, ##__VA_ARGS__)
                        ^
   include/linux/dynamic_debug.h:134:39: note: in definition of macro 'dynamic_dev_dbg'
      __dynamic_dev_dbg(&descriptor, dev, fmt, \
                                          ^~~
   sound/soc/codecs/wm_adsp.c:46:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(_dsp->dev, "DSP%d: " fmt, _dsp->num, ##__VA_ARGS__)
     ^~~~~~~
   sound/soc/codecs/wm_adsp.c:762:2: note: in expansion of macro 'adsp_dbg'
     adsp_dbg(dsp, "Sending 0x%x to acked control alg 0x%x %s:0x%x\n",
     ^~~~~~~~
   sound/soc/codecs/wm_adsp.c:42:22: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat=]
     dev_warn(_dsp->dev, "DSP%d: " fmt, _dsp->num, ##__VA_ARGS__)
                         ^
   sound/soc/codecs/wm_adsp.c:802:2: note: in expansion of macro 'adsp_warn'
     adsp_warn(dsp, "Acked control @0x%x alg:0x%x %s:0x%x timed out\n",
     ^~~~~~~~~
   sound/soc/codecs/wm_adsp.c: In function 'wm_adsp_signal_event_controls':
   sound/soc/codecs/wm_adsp.c:1112:10: error: 'struct wm_coeff_ctl' has no member named 'type'
      if (ctl->type != WMFW_CTL_TYPE_HOSTEVENT)
             ^~
   cc1: some warnings being treated as errors

vim +/wm_coeff_base_reg +758 sound/soc/codecs/wm_adsp.c

   752	{
   753		struct wm_adsp *dsp = ctl->dsp;
   754		u32 val = cpu_to_be32(event_id);
   755		unsigned int reg;
   756		int i, ret;
   757	
 > 758		ret = wm_coeff_base_reg(ctl, &reg);
   759		if (ret)
   760			return ret;
   761	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 56569 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20161112/0a05c421/attachment-0001.bin>


More information about the Alsa-devel mailing list