[alsa-devel] [asoc:topic/simple 20/20] sound/soc/sh/rcar/rsrc-card.c:193:9: error: implicit declaration of function 'asoc_simple_card_parse_clk_cpu'

kbuild test robot fengguang.wu at intel.com
Fri Aug 5 17:22:27 CEST 2016


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/simple
head:   c9a235da8a61cf9af7653fca341ded0881a64eca
commit: c9a235da8a61cf9af7653fca341ded0881a64eca [20/20] ASoC: rsrc-card: use asoc_simple_card_parse_clk()
config: arm-shmobile_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609
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
        git checkout c9a235da8a61cf9af7653fca341ded0881a64eca
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   sound/soc/sh/rcar/rsrc-card.c: In function 'rsrc_card_parse_links':
>> sound/soc/sh/rcar/rsrc-card.c:193:9: error: implicit declaration of function 'asoc_simple_card_parse_clk_cpu' [-Werror=implicit-function-declaration]
      ret = asoc_simple_card_parse_clk_cpu(np, dai_link, dai_props);
            ^
>> sound/soc/sh/rcar/rsrc-card.c:232:9: error: implicit declaration of function 'asoc_simple_card_parse_clk_codec' [-Werror=implicit-function-declaration]
      ret = asoc_simple_card_parse_clk_codec(np, dai_link, dai_props);
            ^
   cc1: some warnings being treated as errors

vim +/asoc_simple_card_parse_clk_cpu +193 sound/soc/sh/rcar/rsrc-card.c

   187			dai_link->dpcm_merged_format	= 1;
   188			dai_link->cpu_of_node		= args.np;
   189			ret = snd_soc_of_get_dai_name(np, &dai_link->cpu_dai_name);
   190			if (ret < 0)
   191				return ret;
   192	
 > 193			ret = asoc_simple_card_parse_clk_cpu(np, dai_link, dai_props);
   194			if (ret < 0)
   195				return ret;
   196	
   197			ret = asoc_simple_card_set_dailink_name(dev, dai_link,
   198								"fe.%s",
   199								dai_link->cpu_dai_name);
   200			if (ret < 0)
   201				return ret;
   202	
   203			/*
   204			 * In soc_bind_dai_link() will check cpu name after
   205			 * of_node matching if dai_link has cpu_dai_name.
   206			 * but, it will never match if name was created by
   207			 * fmt_single_name() remove cpu_dai_name if cpu_args
   208			 * was 0. See:
   209			 *	fmt_single_name()
   210			 *	fmt_multiple_name()
   211			 */
   212			if (!args.args_count)
   213				dai_link->cpu_dai_name = NULL;
   214		} else {
   215			const struct rsrc_card_of_data *of_data;
   216	
   217			of_data = of_device_get_match_data(dev);
   218	
   219			/* FE is dummy */
   220			dai_link->cpu_of_node		= NULL;
   221			dai_link->cpu_dai_name		= "snd-soc-dummy-dai";
   222			dai_link->cpu_name		= "snd-soc-dummy";
   223	
   224			/* BE settings */
   225			dai_link->no_pcm		= 1;
   226			dai_link->be_hw_params_fixup	= rsrc_card_be_hw_params_fixup;
   227			dai_link->codec_of_node		= args.np;
   228			ret = snd_soc_of_get_dai_name(np, &dai_link->codec_dai_name);
   229			if (ret < 0)
   230				return ret;
   231	
 > 232			ret = asoc_simple_card_parse_clk_codec(np, dai_link, dai_props);
   233			if (ret < 0)
   234				return ret;
   235	

---
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/octet-stream
Size: 25081 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20160805/27a559db/attachment-0001.obj>


More information about the Alsa-devel mailing list