* [morimoto:sound-cleanup-2026-06-01-3 290/290] sound/soc/meson/meson-card-utils.c:280:22: error: too many arguments to function 'devm_snd_soc_card_alloc'; expected 2, have 6
@ 2026-06-03 0:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-03 0:38 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: oe-kbuild-all
tree: https://github.com/morimoto/linux sound-cleanup-2026-06-01-3
head: 1ef39bbdce9099b285b9702e22c4defc277e42dd
commit: ba5577652c6a70b474f502c8026d61c78664c85f [290/290] ASoC: meson: meson-card-utils: use snd_soc_card_register()
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20260603/202606030833.5tu0NsiD-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260603/202606030833.5tu0NsiD-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/202606030833.5tu0NsiD-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/parisc/include/asm/alternative.h:18,
from arch/parisc/include/asm/barrier.h:5,
from include/linux/list.h:11,
from include/linux/module.h:12,
from sound/soc/meson/meson-card-utils.c:6:
sound/soc/meson/meson-card-utils.c: In function 'meson_card_probe':
include/linux/init.h:176:21: error: passing argument 2 of 'devm_snd_soc_card_alloc' from incompatible pointer type [-Wincompatible-pointer-types]
176 | #define THIS_MODULE ((struct module *)0)
| ^~~~~~~~~~~~~~~~~~~~
| |
| struct module *
sound/soc/meson/meson-card-utils.c:280:51: note: in expansion of macro 'THIS_MODULE'
280 | priv->card = devm_snd_soc_card_alloc(dev, THIS_MODULE, &priv->card_driver,
| ^~~~~~~~~~~
In file included from include/sound/soc.h:1318,
from sound/soc/meson/meson-card-utils.c:8:
include/sound/soc-card.h:91:74: note: expected 'struct snd_soc_card_driver *' but argument is of type 'struct module *'
91 | struct snd_soc_card_driver *driver);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
>> sound/soc/meson/meson-card-utils.c:280:22: error: too many arguments to function 'devm_snd_soc_card_alloc'; expected 2, have 6
280 | priv->card = devm_snd_soc_card_alloc(dev, THIS_MODULE, &priv->card_driver,
| ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
include/sound/soc-card.h:90:22: note: declared here
90 | struct snd_soc_card *devm_snd_soc_card_alloc(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/devm_snd_soc_card_alloc +280 sound/soc/meson/meson-card-utils.c
262
263 int meson_card_probe(struct platform_device *pdev)
264 {
265 const struct meson_card_match_data *data;
266 struct device *dev = &pdev->dev;
267 struct meson_card *priv;
268 int ret;
269
270 data = of_device_get_match_data(dev);
271 if (!data) {
272 dev_err(dev, "failed to match device\n");
273 return -ENODEV;
274 }
275
276 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
277 if (!priv)
278 return -ENOMEM;
279
> 280 priv->card = devm_snd_soc_card_alloc(dev, THIS_MODULE, &priv->card_driver,
281 NULL, NULL, NULL);
282 if (!priv->card)
283 return -ENOMEM;
284
285 snd_soc_card_set_drvdata(priv->card, priv);
286
287 priv->card_driver.name = dev->driver->name;
288 priv->match_data = data;
289
290 ret = snd_soc_of_parse_card_name(priv->card, "model");
291 if (ret < 0)
292 return ret;
293
294 ret = meson_card_parse_of_optional(priv->card, "audio-routing",
295 snd_soc_of_parse_audio_routing);
296 if (ret) {
297 dev_err(dev, "error while parsing routing\n");
298 return ret;
299 }
300
301 ret = meson_card_parse_of_optional(priv->card, "audio-widgets",
302 snd_soc_of_parse_audio_simple_widgets);
303 if (ret) {
304 dev_err(dev, "error while parsing widgets\n");
305 return ret;
306 }
307
308 ret = meson_card_add_links(priv->card);
309 if (ret)
310 goto out_err;
311
312 ret = snd_soc_of_parse_aux_devs(priv->card, "audio-aux-devs");
313 if (ret)
314 goto out_err;
315
316 ret = devm_snd_soc_card_register(priv->card);
317 if (ret)
318 goto out_err;
319
320 return 0;
321
322 out_err:
323 meson_card_clean_references(priv);
324 return ret;
325 }
326 EXPORT_SYMBOL_GPL(meson_card_probe);
327
--
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:[~2026-06-03 0:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 0:38 [morimoto:sound-cleanup-2026-06-01-3 290/290] sound/soc/meson/meson-card-utils.c:280:22: error: too many arguments to function 'devm_snd_soc_card_alloc'; expected 2, have 6 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.