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-09-04 262/343] sound/soc/codecs/nau8360.c:2255:16: error: implicit declaration of function 'devm_snd_soc_register_component'; did you mean 'devm_snd_soc_register_card'?
Date: Wed, 09 Sep 2026 00:07:39 +0800	[thread overview]
Message-ID: <202609082306.RPPerhUN-lkp@intel.com> (raw)

tree:   https://github.com/morimoto/linux sound-cleanup-2026-09-04
head:   dfa282dfe99643be782149d948208f3d514ebb99
commit: ee124ecd0cb27953c01b601bcb3e15734358af1c [262/343] ASoC: soc-component: remove compatible definition
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20260908/202609082306.RPPerhUN-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260908/202609082306.RPPerhUN-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/202609082306.RPPerhUN-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/soc/codecs/nau8360.c: In function 'nau8360_anc_put':
   sound/soc/codecs/nau8360.c:362:35: error: implicit declaration of function 'snd_soc_component_get_drvdata'; did you mean 'snd_soc_component_set_jack'? [-Wimplicit-function-declaration]
     362 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   snd_soc_component_set_jack
   sound/soc/codecs/nau8360.c:362:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   sound/soc/codecs/nau8360.c: In function 'nau8360_peq_coeff_get':
   sound/soc/codecs/nau8360.c:409:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     409 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_peq_coeff_put':
   sound/soc/codecs/nau8360.c:452:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     452 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_dsp_switch':
   sound/soc/codecs/nau8360.c:688:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     688 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_dac_mux_put_enum':
   sound/soc/codecs/nau8360.c:712:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     712 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_startup':
   sound/soc/codecs/nau8360.c:826:50: error: invalid use of undefined type 'struct snd_soc_dai'
     826 |         struct snd_soc_component *component = dai->component;
         |                                                  ^~
   sound/soc/codecs/nau8360.c:827:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     827 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_shutdown':
   sound/soc/codecs/nau8360.c:855:50: error: invalid use of undefined type 'struct snd_soc_dai'
     855 |         struct snd_soc_component *component = dai->component;
         |                                                  ^~
   sound/soc/codecs/nau8360.c:856:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     856 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_hw_params':
   sound/soc/codecs/nau8360.c:871:50: error: invalid use of undefined type 'struct snd_soc_dai'
     871 |         struct snd_soc_component *component = dai->component;
         |                                                  ^~
   sound/soc/codecs/nau8360.c:872:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     872 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_set_fmt':
   sound/soc/codecs/nau8360.c:931:50: error: invalid use of undefined type 'struct snd_soc_dai'
     931 |         struct snd_soc_component *component = dai->component;
         |                                                  ^~
   sound/soc/codecs/nau8360.c: In function 'nau8360_enable_tdm_channels':
   sound/soc/codecs/nau8360.c:1130:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1130 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_tdm_apply':
   sound/soc/codecs/nau8360.c:1152:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1152 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_set_tdm_slot':
   sound/soc/codecs/nau8360.c:1172:43: error: invalid use of undefined type 'struct snd_soc_dai'
    1172 |         struct snd_soc_component *cp = dai->component;
         |                                           ^~
   sound/soc/codecs/nau8360.c:1174:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1174 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_set_sysclk':
   sound/soc/codecs/nau8360.c:1430:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1430 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_set_pll':
   sound/soc/codecs/nau8360.c:1547:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1547 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_dsp_bootup':
   sound/soc/codecs/nau8360.c:1658:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1658 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_tdm_function_config':
   sound/soc/codecs/nau8360.c:1668:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1668 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_codec_probe':
   sound/soc/codecs/nau8360.c:1713:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1713 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_suspend':
   sound/soc/codecs/nau8360.c:1760:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1760 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_resume':
   sound/soc/codecs/nau8360.c:1776:35: error: initialization of 'struct nau8360 *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1776 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c: In function 'nau8360_i2c_probe':
>> sound/soc/codecs/nau8360.c:2255:16: error: implicit declaration of function 'devm_snd_soc_register_component'; did you mean 'devm_snd_soc_register_card'? [-Wimplicit-function-declaration]
    2255 |         return devm_snd_soc_register_component(dev, &soc_comp_dev_nau8360, &nau8360_dai, 1);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                devm_snd_soc_register_card


vim +2255 sound/soc/codecs/nau8360.c

be88847a8bb1a1 Neo Chang 2026-08-25  2211  
be88847a8bb1a1 Neo Chang 2026-08-25  2212  static int nau8360_i2c_probe(struct i2c_client *i2c)
be88847a8bb1a1 Neo Chang 2026-08-25  2213  {
be88847a8bb1a1 Neo Chang 2026-08-25  2214  	struct device *dev = &i2c->dev;
be88847a8bb1a1 Neo Chang 2026-08-25  2215  	struct nau8360 *nau8360;
be88847a8bb1a1 Neo Chang 2026-08-25  2216  	struct regmap_config regmap_cfg = nau8360_regmap_config;
be88847a8bb1a1 Neo Chang 2026-08-25  2217  	struct reg_default *dyn_defaults;
be88847a8bb1a1 Neo Chang 2026-08-25  2218  	int num_total_regs;
be88847a8bb1a1 Neo Chang 2026-08-25  2219  	int ret, value;
be88847a8bb1a1 Neo Chang 2026-08-25  2220  
be88847a8bb1a1 Neo Chang 2026-08-25  2221  	nau8360 = devm_kzalloc(dev, sizeof(*nau8360), GFP_KERNEL);
be88847a8bb1a1 Neo Chang 2026-08-25  2222  	if (!nau8360)
be88847a8bb1a1 Neo Chang 2026-08-25  2223  		return -ENOMEM;
be88847a8bb1a1 Neo Chang 2026-08-25  2224  
be88847a8bb1a1 Neo Chang 2026-08-25  2225  	i2c_set_clientdata(i2c, nau8360);
be88847a8bb1a1 Neo Chang 2026-08-25  2226  	mutex_init(&nau8360->lock);
be88847a8bb1a1 Neo Chang 2026-08-25  2227  	INIT_WORK(&nau8360->load_fw_work, nau8360_load_fw_work);
be88847a8bb1a1 Neo Chang 2026-08-25  2228  
be88847a8bb1a1 Neo Chang 2026-08-25  2229  	dyn_defaults = nau8360_alloc_defaults(dev, &num_total_regs);
be88847a8bb1a1 Neo Chang 2026-08-25  2230  	if (!dyn_defaults)
be88847a8bb1a1 Neo Chang 2026-08-25  2231  		return -ENOMEM;
be88847a8bb1a1 Neo Chang 2026-08-25  2232  
be88847a8bb1a1 Neo Chang 2026-08-25  2233  	regmap_cfg.reg_defaults = dyn_defaults;
be88847a8bb1a1 Neo Chang 2026-08-25  2234  	regmap_cfg.num_reg_defaults = num_total_regs;
be88847a8bb1a1 Neo Chang 2026-08-25  2235  
be88847a8bb1a1 Neo Chang 2026-08-25  2236  	nau8360->regmap = devm_regmap_init(dev, NULL, i2c, &regmap_cfg);
be88847a8bb1a1 Neo Chang 2026-08-25  2237  	if (IS_ERR(nau8360->regmap))
be88847a8bb1a1 Neo Chang 2026-08-25  2238  		return PTR_ERR(nau8360->regmap);
be88847a8bb1a1 Neo Chang 2026-08-25  2239  	nau8360->dev = dev;
be88847a8bb1a1 Neo Chang 2026-08-25  2240  
be88847a8bb1a1 Neo Chang 2026-08-25  2241  	nau8360_reset_chip(nau8360->regmap);
be88847a8bb1a1 Neo Chang 2026-08-25  2242  	ret = regmap_read(nau8360->regmap, NAU8360_R46_I2C_DEVICE_ID, &value);
be88847a8bb1a1 Neo Chang 2026-08-25  2243  	if (ret) {
be88847a8bb1a1 Neo Chang 2026-08-25  2244  		dev_err(dev, "Failed to read NAU83G60 device id %d", ret);
be88847a8bb1a1 Neo Chang 2026-08-25  2245  		return ret;
be88847a8bb1a1 Neo Chang 2026-08-25  2246  	}
be88847a8bb1a1 Neo Chang 2026-08-25  2247  
be88847a8bb1a1 Neo Chang 2026-08-25  2248  	ret = nau8360_read_device_properties(nau8360);
be88847a8bb1a1 Neo Chang 2026-08-25  2249  	if (ret)
be88847a8bb1a1 Neo Chang 2026-08-25  2250  		return ret;
be88847a8bb1a1 Neo Chang 2026-08-25  2251  
be88847a8bb1a1 Neo Chang 2026-08-25  2252  	nau8360_print_device_properties(nau8360);
be88847a8bb1a1 Neo Chang 2026-08-25  2253  	nau8360_init_regs(nau8360);
be88847a8bb1a1 Neo Chang 2026-08-25  2254  
be88847a8bb1a1 Neo Chang 2026-08-25 @2255  	return devm_snd_soc_register_component(dev, &soc_comp_dev_nau8360, &nau8360_dai, 1);
be88847a8bb1a1 Neo Chang 2026-08-25  2256  }
be88847a8bb1a1 Neo Chang 2026-08-25  2257  

:::::: The code at line 2255 was first introduced by commit
:::::: be88847a8bb1a14194cf50116f8909d127861318 ASoC: codecs: nau8360: Add support for NAU83G60 amplifier

:::::: TO: Neo Chang <YLCHANG2@nuvoton.com>
:::::: CC: Mark Brown <broonie@kernel.org>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-09-08 16:08 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=202609082306.RPPerhUN-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.