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-2026-03-27 95/106] sound/soc/pxa/mmp-sspa.c:110:23: error: call to undeclared function 'snd_soc_dai_to_dev'; ISO C99 and later do not support implicit function declarations
Date: Sat, 28 Mar 2026 01:34:57 +0800 [thread overview]
Message-ID: <202603280124.IoW0q20u-lkp@intel.com> (raw)
tree: https://github.com/morimoto/linux sound-cleanup-2026-03-27
head: b547ff73a13ed8ce92e8e208ccd27884077b160b
commit: 09f6604cc02792c7e69777d60b23ac6314ee428c [95/106] dai
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260328/202603280124.IoW0q20u-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/20260328/202603280124.IoW0q20u-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/202603280124.IoW0q20u-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/pxa/mmp-sspa.c:110:23: error: call to undeclared function 'snd_soc_dai_to_dev'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
110 | struct device *dev = snd_soc_dai_to_dev(cpu_dai);
| ^
sound/soc/pxa/mmp-sspa.c:110:23: note: did you mean 'snd_soc_dapm_to_dev'?
include/sound/soc-dapm.h:643:16: note: 'snd_soc_dapm_to_dev' declared here
643 | struct device *snd_soc_dapm_to_dev(struct snd_soc_dapm_context *dapm);
| ^
>> sound/soc/pxa/mmp-sspa.c:110:17: error: incompatible integer to pointer conversion initializing 'struct device *' with an expression of type 'int' [-Wint-conversion]
110 | struct device *dev = snd_soc_dai_to_dev(cpu_dai);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/pxa/mmp-sspa.c:138:23: error: call to undeclared function 'snd_soc_dai_to_dev'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
138 | struct device *dev = snd_soc_dai_to_dev(cpu_dai);
| ^
sound/soc/pxa/mmp-sspa.c:138:17: error: incompatible integer to pointer conversion initializing 'struct device *' with an expression of type 'int' [-Wint-conversion]
138 | struct device *dev = snd_soc_dai_to_dev(cpu_dai);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/pxa/mmp-sspa.c:216:23: error: call to undeclared function 'snd_soc_dai_to_dev'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
216 | struct device *dev = snd_soc_dai_to_dev(dai);
| ^
sound/soc/pxa/mmp-sspa.c:216:17: error: incompatible integer to pointer conversion initializing 'struct device *' with an expression of type 'int' [-Wint-conversion]
216 | struct device *dev = snd_soc_dai_to_dev(dai);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/pxa/mmp-sspa.c:327:23: error: call to undeclared function 'snd_soc_dai_to_dev'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
327 | struct device *dev = snd_soc_dai_to_dev(dai);
| ^
sound/soc/pxa/mmp-sspa.c:327:17: error: incompatible integer to pointer conversion initializing 'struct device *' with an expression of type 'int' [-Wint-conversion]
327 | struct device *dev = snd_soc_dai_to_dev(dai);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
8 errors generated.
vim +/snd_soc_dai_to_dev +110 sound/soc/pxa/mmp-sspa.c
102
103 /*
104 * Set the SSP ports SYSCLK.
105 */
106 static int mmp_sspa_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
107 int clk_id, unsigned int freq, int dir)
108 {
109 struct sspa_priv *sspa = snd_soc_dai_get_drvdata(cpu_dai);
> 110 struct device *dev = snd_soc_dai_to_dev(cpu_dai);
111 int ret = 0;
112
113 if (dev->of_node)
114 return -ENOTSUPP;
115
116 switch (clk_id) {
117 case MMP_SSPA_CLK_AUDIO:
118 ret = clk_set_rate(sspa->audio_clk, freq);
119 if (ret)
120 return ret;
121 break;
122 case MMP_SSPA_CLK_PLL:
123 case MMP_SSPA_CLK_VCXO:
124 /* not support yet */
125 return -EINVAL;
126 default:
127 return -EINVAL;
128 }
129
130 return 0;
131 }
132
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-27 17:35 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=202603280124.IoW0q20u-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