* [morimoto:sound-cleanup-2025-12-01 5/13] sound/soc/mediatek/mt8189/mt8189-nau8825.c:347:34: error: incompatible pointer types passing 'struct snd_soc_dapm_context **' to parameter of type 'struct snd_soc_dapm_context *'; remove &
@ 2025-12-02 5:20 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-02 5:20 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
tree: https://github.com/morimoto/linux sound-cleanup-2025-12-01
head: a5568a9bacc493dbb1465f3b850acf8595553013
commit: 80cf25a8c974d41d5dec39864570b0e1a3b3b997 [5/13] ASoC: soc-dapm: add snd_soc_dapm_alloc()
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20251202/202512021328.U7z2nhVN-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251202/202512021328.U7z2nhVN-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512021328.U7z2nhVN-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/mediatek/mt8189/mt8189-nau8825.c:347:34: error: incompatible pointer types passing 'struct snd_soc_dapm_context **' to parameter of type 'struct snd_soc_dapm_context *'; remove & [-Werror,-Wincompatible-pointer-types]
347 | ret = snd_soc_dapm_new_controls(&card->dapm, mt8189_dumb_spk_widgets,
| ^~~~~~~~~~~
include/sound/soc-dapm.h:648:60: note: passing argument to parameter 'dapm' here
648 | int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm,
| ^
sound/soc/mediatek/mt8189/mt8189-nau8825.c:424:34: error: incompatible pointer types passing 'struct snd_soc_dapm_context **' to parameter of type 'struct snd_soc_dapm_context *'; remove & [-Werror,-Wincompatible-pointer-types]
424 | ret = snd_soc_dapm_new_controls(&card->dapm, mt8189_headset_widgets,
| ^~~~~~~~~~~
include/sound/soc-dapm.h:648:60: note: passing argument to parameter 'dapm' here
648 | int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm,
| ^
2 errors generated.
vim +347 sound/soc/mediatek/mt8189/mt8189-nau8825.c
d218ea171430e4 Cyril Chao 2025-10-31 341
d218ea171430e4 Cyril Chao 2025-10-31 342 static int mt8189_dumb_amp_init(struct snd_soc_pcm_runtime *rtd)
d218ea171430e4 Cyril Chao 2025-10-31 343 {
d218ea171430e4 Cyril Chao 2025-10-31 344 struct snd_soc_card *card = rtd->card;
d218ea171430e4 Cyril Chao 2025-10-31 345 int ret;
d218ea171430e4 Cyril Chao 2025-10-31 346
d218ea171430e4 Cyril Chao 2025-10-31 @347 ret = snd_soc_dapm_new_controls(&card->dapm, mt8189_dumb_spk_widgets,
d218ea171430e4 Cyril Chao 2025-10-31 348 ARRAY_SIZE(mt8189_dumb_spk_widgets));
d218ea171430e4 Cyril Chao 2025-10-31 349 if (ret) {
d218ea171430e4 Cyril Chao 2025-10-31 350 dev_err(rtd->dev, "unable to add Dumb Speaker dapm, ret %d\n", ret);
d218ea171430e4 Cyril Chao 2025-10-31 351 return ret;
d218ea171430e4 Cyril Chao 2025-10-31 352 }
d218ea171430e4 Cyril Chao 2025-10-31 353
d218ea171430e4 Cyril Chao 2025-10-31 354 ret = snd_soc_add_card_controls(card, mt8189_dumb_spk_controls,
d218ea171430e4 Cyril Chao 2025-10-31 355 ARRAY_SIZE(mt8189_dumb_spk_controls));
d218ea171430e4 Cyril Chao 2025-10-31 356 if (ret) {
d218ea171430e4 Cyril Chao 2025-10-31 357 dev_err(rtd->dev, "unable to add Dumb card controls, ret %d\n", ret);
d218ea171430e4 Cyril Chao 2025-10-31 358 return ret;
d218ea171430e4 Cyril Chao 2025-10-31 359 }
d218ea171430e4 Cyril Chao 2025-10-31 360
d218ea171430e4 Cyril Chao 2025-10-31 361 return 0;
d218ea171430e4 Cyril Chao 2025-10-31 362 }
d218ea171430e4 Cyril Chao 2025-10-31 363
:::::: The code at line 347 was first introduced by commit
:::::: d218ea171430e49412804efb794942dd121a8032 ASoC: mediatek: mt8189: add machine driver with nau8825
:::::: TO: Cyril Chao <Cyril.Chao@mediatek.com>
:::::: CC: Mark Brown <broonie@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-02 5:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02 5:20 [morimoto:sound-cleanup-2025-12-01 5/13] sound/soc/mediatek/mt8189/mt8189-nau8825.c:347:34: error: incompatible pointer types passing 'struct snd_soc_dapm_context **' to parameter of type 'struct snd_soc_dapm_context *'; remove & kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox