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-04-20-2 147/147] sound/soc/codecs/88pm860x-codec.c:1229:52: error: incomplete definition of type 'struct snd_soc_component'
Date: Fri, 24 Apr 2026 14:20:24 +0800 [thread overview]
Message-ID: <202604241453.bSDCnoJH-lkp@intel.com> (raw)
tree: https://github.com/morimoto/linux sound-cleanup-2026-04-20-2
head: 1604ab9b37c0f7145cc187f24e3aca5b4e318eb1
commit: 1604ab9b37c0f7145cc187f24e3aca5b4e318eb1 [147/147] move soc-component
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20260424/202604241453.bSDCnoJH-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260424/202604241453.bSDCnoJH-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/202604241453.bSDCnoJH-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/codecs/88pm860x-codec.c:1229:52: error: incomplete definition of type 'struct snd_soc_component'
1229 | trace_snd_soc_jack_irq(dev_name(pm860x->component->dev));
| ~~~~~~~~~~~~~~~~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
1 error generated.
vim +1229 sound/soc/codecs/88pm860x-codec.c
f213f4b5177740 Haojian Zhuang 2010-08-19 1213
5783994b9afa8d Kuninori Morimoto 2018-01-29 1214 static irqreturn_t pm860x_component_handler(int irq, void *data)
f213f4b5177740 Haojian Zhuang 2010-08-19 1215 {
f213f4b5177740 Haojian Zhuang 2010-08-19 1216 struct pm860x_priv *pm860x = data;
abc495582a3f01 Kuninori Morimoto 2026-04-09 1217 struct device *dev = snd_soc_component_to_dev(pm860x->component);
f213f4b5177740 Haojian Zhuang 2010-08-19 1218 int status, shrt, report = 0, mic_report = 0;
f213f4b5177740 Haojian Zhuang 2010-08-19 1219 int mask;
f213f4b5177740 Haojian Zhuang 2010-08-19 1220
f213f4b5177740 Haojian Zhuang 2010-08-19 1221 status = pm860x_reg_read(pm860x->i2c, REG_STATUS_1);
f213f4b5177740 Haojian Zhuang 2010-08-19 1222 shrt = pm860x_reg_read(pm860x->i2c, REG_SHORTS);
f213f4b5177740 Haojian Zhuang 2010-08-19 1223 mask = pm860x->det.hs_shrt | pm860x->det.hook_det | pm860x->det.lo_shrt
f213f4b5177740 Haojian Zhuang 2010-08-19 1224 | pm860x->det.hp_det;
f213f4b5177740 Haojian Zhuang 2010-08-19 1225
7116f452c8e3e3 Mark Brown 2010-12-29 1226 #ifndef CONFIG_SND_SOC_88PM860X_MODULE
1c9e9795b5e234 Mark Brown 2010-12-05 1227 if (status & (HEADSET_STATUS | MIC_STATUS | SHORT_HS1 | SHORT_HS2 |
1c9e9795b5e234 Mark Brown 2010-12-05 1228 SHORT_LO1 | SHORT_LO2))
5783994b9afa8d Kuninori Morimoto 2018-01-29 @1229 trace_snd_soc_jack_irq(dev_name(pm860x->component->dev));
1435b9402fe0fb Mark Brown 2010-12-23 1230 #endif
1c9e9795b5e234 Mark Brown 2010-12-05 1231
f213f4b5177740 Haojian Zhuang 2010-08-19 1232 if ((pm860x->det.hp_det & SND_JACK_HEADPHONE)
f213f4b5177740 Haojian Zhuang 2010-08-19 1233 && (status & HEADSET_STATUS))
f213f4b5177740 Haojian Zhuang 2010-08-19 1234 report |= SND_JACK_HEADPHONE;
f213f4b5177740 Haojian Zhuang 2010-08-19 1235
f213f4b5177740 Haojian Zhuang 2010-08-19 1236 if ((pm860x->det.mic_det & SND_JACK_MICROPHONE)
f213f4b5177740 Haojian Zhuang 2010-08-19 1237 && (status & MIC_STATUS))
f213f4b5177740 Haojian Zhuang 2010-08-19 1238 mic_report |= SND_JACK_MICROPHONE;
f213f4b5177740 Haojian Zhuang 2010-08-19 1239
f213f4b5177740 Haojian Zhuang 2010-08-19 1240 if (pm860x->det.hs_shrt && (shrt & (SHORT_HS1 | SHORT_HS2)))
f213f4b5177740 Haojian Zhuang 2010-08-19 1241 report |= pm860x->det.hs_shrt;
f213f4b5177740 Haojian Zhuang 2010-08-19 1242
f213f4b5177740 Haojian Zhuang 2010-08-19 1243 if (pm860x->det.hook_det && (status & HOOK_STATUS))
f213f4b5177740 Haojian Zhuang 2010-08-19 1244 report |= pm860x->det.hook_det;
f213f4b5177740 Haojian Zhuang 2010-08-19 1245
f213f4b5177740 Haojian Zhuang 2010-08-19 1246 if (pm860x->det.lo_shrt && (shrt & (SHORT_LO1 | SHORT_LO2)))
f213f4b5177740 Haojian Zhuang 2010-08-19 1247 report |= pm860x->det.lo_shrt;
f213f4b5177740 Haojian Zhuang 2010-08-19 1248
f213f4b5177740 Haojian Zhuang 2010-08-19 1249 if (report)
f213f4b5177740 Haojian Zhuang 2010-08-19 1250 snd_soc_jack_report(pm860x->det.hp_jack, report, mask);
f213f4b5177740 Haojian Zhuang 2010-08-19 1251 if (mic_report)
f213f4b5177740 Haojian Zhuang 2010-08-19 1252 snd_soc_jack_report(pm860x->det.mic_jack, SND_JACK_MICROPHONE,
f213f4b5177740 Haojian Zhuang 2010-08-19 1253 SND_JACK_MICROPHONE);
f213f4b5177740 Haojian Zhuang 2010-08-19 1254
abc495582a3f01 Kuninori Morimoto 2026-04-09 1255 dev_dbg(dev, "headphone report:0x%x, mask:%x\n", report, mask);
abc495582a3f01 Kuninori Morimoto 2026-04-09 1256 dev_dbg(dev, "microphone report:0x%x\n", mic_report);
f213f4b5177740 Haojian Zhuang 2010-08-19 1257 return IRQ_HANDLED;
f213f4b5177740 Haojian Zhuang 2010-08-19 1258 }
f213f4b5177740 Haojian Zhuang 2010-08-19 1259
:::::: The code at line 1229 was first introduced by commit
:::::: 5783994b9afa8d37e9766b3cfbb594c1ae26087c ASoC: 88pm860x: replace codec to component
:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
:::::: CC: Mark Brown <broonie@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-24 6:20 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=202604241453.bSDCnoJH-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