public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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 &
Date: Tue, 2 Dec 2025 13:20:04 +0800	[thread overview]
Message-ID: <202512021328.U7z2nhVN-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-12-02  5:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202512021328.U7z2nhVN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox