[alsa-devel] [asoc:for-next 19/53] sound/soc//amd/acp-da7219-max98357a.c:79:22: error: passing argument 1 of 'da7219_aad_jack_det' from incompatible pointer type
kbuild test robot
fengguang.wu at intel.com
Fri Feb 16 20:18:59 CET 2018
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
head: 5372fcd763f83d0e4d38ac008a2076f36664cbae
commit: b2eeca7e9dc8f413d446f397a0220e21d6eb01d1 [19/53] Merge remote-tracking branches 'asoc/topic/ak5386', 'asoc/topic/ak5558', 'asoc/topic/alc5623', 'asoc/topic/alc5632' and 'asoc/topic/amd' into asoc-next
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout b2eeca7e9dc8f413d446f397a0220e21d6eb01d1
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
sound/soc//amd/acp-da7219-max98357a.c: In function 'cz_da7219_init':
>> sound/soc//amd/acp-da7219-max98357a.c:79:22: error: passing argument 1 of 'da7219_aad_jack_det' from incompatible pointer type [-Werror=incompatible-pointer-types]
da7219_aad_jack_det(codec, &cz_jack);
^~~~~
In file included from sound/soc//amd/acp-da7219-max98357a.c:38:0:
sound/soc//amd/../codecs/da7219-aad.h:209:6: note: expected 'struct snd_soc_component *' but argument is of type 'struct snd_soc_codec *'
void da7219_aad_jack_det(struct snd_soc_component *component, struct snd_soc_jack *jack);
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
sparse warnings: (new ones prefixed by >>)
>> sound/soc/amd/acp-da7219-max98357a.c:79:29: sparse: incorrect type in argument 1 (different base types) @@ expected struct snd_soc_component @@ got ct snd_soc_component @@
sound/soc/amd/acp-da7219-max98357a.c:79:29: expected struct snd_soc_component
sound/soc/amd/acp-da7219-max98357a.c:79:29: got struct snd_soc_codec
sound/soc/amd/acp-da7219-max98357a.c: In function 'cz_da7219_init':
sound/soc/amd/acp-da7219-max98357a.c:79:22: error: passing argument 1 of 'da7219_aad_jack_det' from incompatible pointer type
da7219_aad_jack_det(codec, &cz_jack);
^~~~~
In file included from sound/soc/amd/acp-da7219-max98357a.c:38:0:
sound/soc/amd/../codecs/da7219-aad.h:209:6: note: expected 'struct snd_soc_component but argument is of type 'struct snd_soc_codec
void da7219_aad_jack_det(struct snd_soc_component struct snd_soc_jack
^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/da7219_aad_jack_det +79 sound/soc//amd/acp-da7219-max98357a.c
608a300f Akshu Agrawal 2018-02-16 45
608a300f Akshu Agrawal 2018-02-16 46 static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd)
608a300f Akshu Agrawal 2018-02-16 47 {
608a300f Akshu Agrawal 2018-02-16 48 int ret;
608a300f Akshu Agrawal 2018-02-16 49 struct snd_soc_card *card = rtd->card;
608a300f Akshu Agrawal 2018-02-16 50 struct snd_soc_codec *codec = rtd->codec;
608a300f Akshu Agrawal 2018-02-16 51 struct snd_soc_dai *codec_dai = rtd->codec_dai;
608a300f Akshu Agrawal 2018-02-16 52
608a300f Akshu Agrawal 2018-02-16 53 dev_info(rtd->dev, "codec dai name = %s\n", codec_dai->name);
608a300f Akshu Agrawal 2018-02-16 54
608a300f Akshu Agrawal 2018-02-16 55 ret = snd_soc_dai_set_sysclk(codec_dai, DA7219_CLKSRC_MCLK,
608a300f Akshu Agrawal 2018-02-16 56 CZ_PLAT_CLK, SND_SOC_CLOCK_IN);
608a300f Akshu Agrawal 2018-02-16 57 if (ret < 0) {
608a300f Akshu Agrawal 2018-02-16 58 dev_err(rtd->dev, "can't set codec sysclk: %d\n", ret);
608a300f Akshu Agrawal 2018-02-16 59 return ret;
608a300f Akshu Agrawal 2018-02-16 60 }
608a300f Akshu Agrawal 2018-02-16 61
608a300f Akshu Agrawal 2018-02-16 62 ret = snd_soc_dai_set_pll(codec_dai, 0, DA7219_SYSCLK_PLL,
608a300f Akshu Agrawal 2018-02-16 63 CZ_PLAT_CLK, MCLK_RATE);
608a300f Akshu Agrawal 2018-02-16 64 if (ret < 0) {
608a300f Akshu Agrawal 2018-02-16 65 dev_err(rtd->dev, "can't set codec pll: %d\n", ret);
608a300f Akshu Agrawal 2018-02-16 66 return ret;
608a300f Akshu Agrawal 2018-02-16 67 }
608a300f Akshu Agrawal 2018-02-16 68
608a300f Akshu Agrawal 2018-02-16 69 ret = snd_soc_card_jack_new(card, "Headset Jack",
608a300f Akshu Agrawal 2018-02-16 70 SND_JACK_HEADPHONE | SND_JACK_MICROPHONE |
608a300f Akshu Agrawal 2018-02-16 71 SND_JACK_BTN_0 | SND_JACK_BTN_1 |
608a300f Akshu Agrawal 2018-02-16 72 SND_JACK_BTN_2 | SND_JACK_BTN_3,
608a300f Akshu Agrawal 2018-02-16 73 &cz_jack, NULL, 0);
608a300f Akshu Agrawal 2018-02-16 74 if (ret) {
608a300f Akshu Agrawal 2018-02-16 75 dev_err(card->dev, "HP jack creation failed %d\n", ret);
608a300f Akshu Agrawal 2018-02-16 76 return ret;
608a300f Akshu Agrawal 2018-02-16 77 }
608a300f Akshu Agrawal 2018-02-16 78
608a300f Akshu Agrawal 2018-02-16 @79 da7219_aad_jack_det(codec, &cz_jack);
608a300f Akshu Agrawal 2018-02-16 80
608a300f Akshu Agrawal 2018-02-16 81 return 0;
608a300f Akshu Agrawal 2018-02-16 82 }
608a300f Akshu Agrawal 2018-02-16 83
:::::: The code at line 79 was first introduced by commit
:::::: 608a300fc1f0e088446cbef8e13ded686c5172b6 ASoC: AMD: Add machine driver for ST DA7219 MAX98357
:::::: TO: Akshu Agrawal <akshu.agrawal at amd.com>
:::::: CC: Mark Brown <broonie at kernel.org>
---
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: 63130 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180217/e491383d/attachment-0001.bin>
More information about the Alsa-devel
mailing list