All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 03 Jun 2026 08:38:02 +0800	[thread overview]
Message-ID: <202606030833.5tu0NsiD-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-06-03  0:38 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=202606030833.5tu0NsiD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --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 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.