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 261/343] sound/soc/codecs/sn624x-sdca-sdw.c:199:17: error: implicit declaration of function 'snd_soc_component_get_drvdata'; did you mean 'snd_soc_component_set_jack'?
Date: Tue, 08 Sep 2026 07:04:00 +0800	[thread overview]
Message-ID: <202609080728.QmS2Lvh1-lkp@intel.com> (raw)

tree:   https://github.com/morimoto/linux sound-cleanup-2026-09-04
head:   dfa282dfe99643be782149d948208f3d514ebb99
commit: 2ec5bcc4a0d57a7db5c121ab6e10d602373d1f0e [261/343] ASoC: soc-component: remove snd_soc_component_{set/get}_drvdata()
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260908/202609080728.QmS2Lvh1-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260908/202609080728.QmS2Lvh1-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/202609080728.QmS2Lvh1-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/soc/codecs/sn624x-sdca-sdw.c: In function 'sn624x_dapm_pde_event':
>> sound/soc/codecs/sn624x-sdca-sdw.c:199:17: error: implicit declaration of function 'snd_soc_component_get_drvdata'; did you mean 'snd_soc_component_set_jack'? [-Wimplicit-function-declaration]
     199 |                 snd_soc_component_get_drvdata(component);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                 snd_soc_component_set_jack
>> sound/soc/codecs/sn624x-sdca-sdw.c:199:17: error: initialization of 'struct sn624x_sdca_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   sound/soc/codecs/sn624x-sdca-sdw.c: In function 'sn624x_fu_mute_event':
   sound/soc/codecs/sn624x-sdca-sdw.c:270:17: error: initialization of 'struct sn624x_sdca_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     270 |                 snd_soc_component_get_drvdata(component);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c: In function 'sn624x_fu_mic2_event':
   sound/soc/codecs/sn624x-sdca-sdw.c:346:17: error: initialization of 'struct sn624x_sdca_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     346 |                 snd_soc_component_get_drvdata(component);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c: In function 'sn624x_sdca_set_jack_detect':
   sound/soc/codecs/sn624x-sdca-sdw.c:981:43: error: initialization of 'struct sn624x_sdca_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     981 |         struct sn624x_sdca_priv *sn624x = snd_soc_component_get_drvdata(component);
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c: In function 'sn624x_sdca_probe':
   sound/soc/codecs/sn624x-sdca-sdw.c:1424:43: error: initialization of 'struct sn624x_sdca_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1424 |         struct sn624x_sdca_priv *sn624x = snd_soc_component_get_drvdata(component);
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c: In function 'sn624x_sdca_pcm_hw_params':
   sound/soc/codecs/sn624x-sdca-sdw.c:1443:50: error: invalid use of undefined type 'struct snd_soc_dai'
    1443 |         struct snd_soc_component *component = dai->component;
         |                                                  ^~
   sound/soc/codecs/sn624x-sdca-sdw.c:1444:43: error: initialization of 'struct sn624x_sdca_priv *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1444 |         struct sn624x_sdca_priv *sn624x = snd_soc_component_get_drvdata(component);
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/printk.h:620,
                    from include/asm-generic/bug.h:31,
                    from arch/x86/include/asm/bug.h:195,
                    from arch/x86/include/asm/alternative.h:9,
                    from arch/x86/include/asm/barrier.h:5,
                    from include/asm-generic/bitops/generic-non-atomic.h:7,
                    from include/linux/bitops.h:28,
                    from sound/soc/codecs/sn624x-sdca-sdw.c:8:
   sound/soc/codecs/sn624x-sdca-sdw.c:1452:20: error: invalid use of undefined type 'struct snd_soc_dai'
    1452 |         dev_dbg(dai->dev,
         |                    ^~
   include/linux/dynamic_debug.h:231:29: note: in definition of macro '__dynamic_func_call_cls'
     231 |                 func(&id, ##__VA_ARGS__);                       \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:261:9: note: in expansion of macro '_dynamic_func_call_cls'
     261 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:284:9: note: in expansion of macro '_dynamic_func_call'
     284 |         _dynamic_func_call(fmt, __dynamic_dev_dbg,              \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:165:9: note: in expansion of macro 'dynamic_dev_dbg'
     165 |         dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c:1452:9: note: in expansion of macro 'dev_dbg'
    1452 |         dev_dbg(dai->dev,
         |         ^~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c:1454:21: error: invalid use of undefined type 'struct snd_soc_dai'
    1454 |                  dai->name, dai->id, snd_pcm_stream_str(substream));
         |                     ^~
   include/linux/dynamic_debug.h:231:29: note: in definition of macro '__dynamic_func_call_cls'
     231 |                 func(&id, ##__VA_ARGS__);                       \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:261:9: note: in expansion of macro '_dynamic_func_call_cls'
     261 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:284:9: note: in expansion of macro '_dynamic_func_call'
     284 |         _dynamic_func_call(fmt, __dynamic_dev_dbg,              \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:165:9: note: in expansion of macro 'dynamic_dev_dbg'
     165 |         dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c:1452:9: note: in expansion of macro 'dev_dbg'
    1452 |         dev_dbg(dai->dev,
         |         ^~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c:1454:32: error: invalid use of undefined type 'struct snd_soc_dai'
    1454 |                  dai->name, dai->id, snd_pcm_stream_str(substream));
         |                                ^~
   include/linux/dynamic_debug.h:231:29: note: in definition of macro '__dynamic_func_call_cls'
     231 |                 func(&id, ##__VA_ARGS__);                       \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:261:9: note: in expansion of macro '_dynamic_func_call_cls'
     261 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:284:9: note: in expansion of macro '_dynamic_func_call'
     284 |         _dynamic_func_call(fmt, __dynamic_dev_dbg,              \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:165:9: note: in expansion of macro 'dynamic_dev_dbg'
     165 |         dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c:1452:9: note: in expansion of macro 'dev_dbg'
    1452 |         dev_dbg(dai->dev,
         |         ^~~~~~~
   sound/soc/codecs/sn624x-sdca-sdw.c:1456:22: error: implicit declaration of function 'snd_soc_dai_get_dma_data'; did you mean 'snd_soc_card_get_drvdata'? [-Wimplicit-function-declaration]
    1456 |         sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~
         |                      snd_soc_card_get_drvdata
   sound/soc/codecs/sn624x-sdca-sdw.c:1456:20: error: assignment to 'struct sdw_stream_runtime *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    1456 |         sdw_stream = snd_soc_dai_get_dma_data(dai, substream);
         |                    ^
   In file included from include/linux/device.h:15,
                    from sound/soc/codecs/sn624x-sdca-sdw.c:11:
   sound/soc/codecs/sn624x-sdca-sdw.c:1458:29: error: invalid use of undefined type 'struct snd_soc_dai'
    1458 |                 dev_warn(dai->dev,
         |                             ^~
   include/linux/dev_printk.h:110:25: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                         ^~~


vim +199 sound/soc/codecs/sn624x-sdca-sdw.c

12d9c9f8679c56 Qianghua Wang 2026-09-01  174  
12d9c9f8679c56 Qianghua Wang 2026-09-01  175  #define SN624X_REG_DMIC_FUN_STATUS_CTL \
12d9c9f8679c56 Qianghua Wang 2026-09-01  176  	SDW_SDCA_CTL(SN624X_FUNC_NUM_MIC_ARRAY, SN624X_SDCA_ENT_ENTITY0, \
12d9c9f8679c56 Qianghua Wang 2026-09-01  177  		     SN624X_SDCA_CTL_FUNCTION_STATUS, 0)
12d9c9f8679c56 Qianghua Wang 2026-09-01  178  
12d9c9f8679c56 Qianghua Wang 2026-09-01  179  /*
12d9c9f8679c56 Qianghua Wang 2026-09-01  180   * Write REQUESTED_PS then poll ACTUAL_PS with the shared SDCA helper
12d9c9f8679c56 Qianghua Wang 2026-09-01  181   * (sdca_asoc_pde_poll_actual_ps). Caller must not hand-roll ACTUAL_PS waits.
12d9c9f8679c56 Qianghua Wang 2026-09-01  182   */
12d9c9f8679c56 Qianghua Wang 2026-09-01  183  static int sn624x_pde_request_ps(struct device *dev, struct regmap *regmap,
12d9c9f8679c56 Qianghua Wang 2026-09-01  184  				 unsigned int fun, unsigned int ent,
12d9c9f8679c56 Qianghua Wang 2026-09-01  185  				 unsigned int ps);
12d9c9f8679c56 Qianghua Wang 2026-09-01  186  
12d9c9f8679c56 Qianghua Wang 2026-09-01  187  /*
12d9c9f8679c56 Qianghua Wang 2026-09-01  188   * DAPM PDE supplies (rt711/rt712 style): write REQUESTED_PS then poll ACTUAL_PS.
12d9c9f8679c56 Qianghua Wang 2026-09-01  189   * Mute-before-D3 is handled by FU widget PRE_PMD, which runs before SUPPLY PRE_PMD
12d9c9f8679c56 Qianghua Wang 2026-09-01  190   * when the FU lists the PDE as a dependency.
12d9c9f8679c56 Qianghua Wang 2026-09-01  191   */
12d9c9f8679c56 Qianghua Wang 2026-09-01  192  static int sn624x_dapm_pde_event(struct snd_soc_dapm_widget *w,
12d9c9f8679c56 Qianghua Wang 2026-09-01  193  				 struct snd_kcontrol *kcontrol, int event,
12d9c9f8679c56 Qianghua Wang 2026-09-01  194  				 unsigned int fun, unsigned int ent)
12d9c9f8679c56 Qianghua Wang 2026-09-01  195  {
12d9c9f8679c56 Qianghua Wang 2026-09-01  196  	struct snd_soc_component *component =
12d9c9f8679c56 Qianghua Wang 2026-09-01  197  		snd_soc_dapm_to_component(w->dapm);
12d9c9f8679c56 Qianghua Wang 2026-09-01  198  	struct sn624x_sdca_priv *sn624x =
12d9c9f8679c56 Qianghua Wang 2026-09-01 @199  		snd_soc_component_get_drvdata(component);
12d9c9f8679c56 Qianghua Wang 2026-09-01  200  	struct device *dev = component->dev;
12d9c9f8679c56 Qianghua Wang 2026-09-01  201  	int ret;
12d9c9f8679c56 Qianghua Wang 2026-09-01  202  
12d9c9f8679c56 Qianghua Wang 2026-09-01  203  	if (!sn624x || !sn624x->regmap)
12d9c9f8679c56 Qianghua Wang 2026-09-01  204  		return -ENODEV;
12d9c9f8679c56 Qianghua Wang 2026-09-01  205  
12d9c9f8679c56 Qianghua Wang 2026-09-01  206  	switch (event) {
12d9c9f8679c56 Qianghua Wang 2026-09-01  207  	case SND_SOC_DAPM_POST_PMU:
12d9c9f8679c56 Qianghua Wang 2026-09-01  208  		ret = sn624x_pde_request_ps(dev, sn624x->regmap, fun, ent,
12d9c9f8679c56 Qianghua Wang 2026-09-01  209  					    SN624X_PWR_D0);
12d9c9f8679c56 Qianghua Wang 2026-09-01  210  		if (ret < 0)
12d9c9f8679c56 Qianghua Wang 2026-09-01  211  			dev_warn(dev,
12d9c9f8679c56 Qianghua Wang 2026-09-01  212  				 "sn624x: DAPM %s PDE fun=%u ent=0x%x -> PS0 failed (%d)\n",
12d9c9f8679c56 Qianghua Wang 2026-09-01  213  				 w->name, fun, ent, ret);
12d9c9f8679c56 Qianghua Wang 2026-09-01  214  		break;
12d9c9f8679c56 Qianghua Wang 2026-09-01  215  	case SND_SOC_DAPM_PRE_PMD:
12d9c9f8679c56 Qianghua Wang 2026-09-01  216  		ret = sn624x_pde_request_ps(dev, sn624x->regmap, fun, ent,
12d9c9f8679c56 Qianghua Wang 2026-09-01  217  					    SN624X_PWR_D3);
12d9c9f8679c56 Qianghua Wang 2026-09-01  218  		if (ret < 0)
12d9c9f8679c56 Qianghua Wang 2026-09-01  219  			dev_warn(dev,
12d9c9f8679c56 Qianghua Wang 2026-09-01  220  				 "sn624x: DAPM %s PDE fun=%u ent=0x%x -> PS3 failed (%d)\n",
12d9c9f8679c56 Qianghua Wang 2026-09-01  221  				 w->name, fun, ent, ret);
12d9c9f8679c56 Qianghua Wang 2026-09-01  222  		break;
12d9c9f8679c56 Qianghua Wang 2026-09-01  223  	default:
12d9c9f8679c56 Qianghua Wang 2026-09-01  224  		return 0;
12d9c9f8679c56 Qianghua Wang 2026-09-01  225  	}
12d9c9f8679c56 Qianghua Wang 2026-09-01  226  	return ret;
12d9c9f8679c56 Qianghua Wang 2026-09-01  227  }
12d9c9f8679c56 Qianghua Wang 2026-09-01  228  

:::::: The code at line 199 was first introduced by commit
:::::: 12d9c9f8679c56e8c131dc2d8985c350ece7c4c3 ASoC: codecs: add SN624x SDCA SoundWire driver

:::::: TO: Qianghua Wang <qianghua.wang@senarytech.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-07 23:04 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=202609080728.QmS2Lvh1-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.