[alsa-devel] [asoc:topic/rt5670 3/3] sound/soc//codecs/rt5670.c:2775:2: warning: initialization from incompatible pointer type

kbuild test robot fengguang.wu at intel.com
Thu Jun 29 03:02:49 CEST 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rt5670
head:   6c28ce3c425e32d372c7c6ee98d3c3711f13ad69
commit: 6c28ce3c425e32d372c7c6ee98d3c3711f13ad69 [3/3] ASoC: rt5670: move set_sysclk to codec level
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6c28ce3c425e32d372c7c6ee98d3c3711f13ad69
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   sound/soc//codecs/rt5670.c: In function 'rt5670_set_codec_sysclk':
   sound/soc//codecs/rt5670.c:2448:57: error: 'codec' undeclared (first use in this function)
     struct rt5670_priv *rt5670 = snd_soc_codec_get_drvdata(codec);
                                                            ^
   sound/soc//codecs/rt5670.c:2448:57: note: each undeclared identifier is reported only once for each function it appears in
   sound/soc//codecs/rt5670.c: At top level:
>> sound/soc//codecs/rt5670.c:2775:2: warning: initialization from incompatible pointer type
     .set_sysclk = rt5670_set_codec_sysclk,
     ^
   sound/soc//codecs/rt5670.c:2775:2: warning: (near initialization for 'soc_codec_dev_rt5670.set_sysclk')

vim +2775 sound/soc//codecs/rt5670.c

  2759				.channels_min = 1,
  2760				.channels_max = 2,
  2761				.rates = RT5670_STEREO_RATES,
  2762				.formats = RT5670_FORMATS,
  2763			},
  2764			.ops = &rt5670_aif_dai_ops,
  2765		},
  2766	};
  2767	
  2768	static struct snd_soc_codec_driver soc_codec_dev_rt5670 = {
  2769		.probe = rt5670_probe,
  2770		.remove = rt5670_remove,
  2771		.suspend = rt5670_suspend,
  2772		.resume = rt5670_resume,
  2773		.set_bias_level = rt5670_set_bias_level,
  2774		.idle_bias_off = true,
> 2775		.set_sysclk = rt5670_set_codec_sysclk,
  2776		.component_driver = {
  2777			.controls		= rt5670_snd_controls,
  2778			.num_controls		= ARRAY_SIZE(rt5670_snd_controls),
  2779			.dapm_widgets		= rt5670_dapm_widgets,
  2780			.num_dapm_widgets	= ARRAY_SIZE(rt5670_dapm_widgets),
  2781			.dapm_routes		= rt5670_dapm_routes,
  2782			.num_dapm_routes	= ARRAY_SIZE(rt5670_dapm_routes),
  2783		},

---
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: 50152 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20170629/fb8e0aa4/attachment-0001.bin>


More information about the Alsa-devel mailing list