Skip to contentSkip to conversation

sound/soc/sdca/sdca_interrupts.c:212:34: error: no member named 'completion' in 'struct dev_pm_info'

PATCH kernel test robot 2 participants 2 messages Jan 15

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9b7977f9e39b7768c70c2aa497f04e7569fd3e00
commit: ffd7e8a101110cba86925a2906d925e0db7102f3 [6348/6771] ASoC: SDCA: Device boot into the system suspend process
config: i386-randconfig-004-20260115 (https://download.01.org/0day-ci/archive/20260115/[email protected]/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/20260115/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> sound/soc/sdca/sdca_interrupts.c:212:34: error: no member named 'completion' in 'struct dev_pm_info'
     212 |         if (completion_done(&dev->power.completion)) {
         |                              ~~~~~~~~~~ ^
   sound/soc/sdca/sdca_interrupts.c:226:34: error: no member named 'completion' in 'struct dev_pm_info'
     226 |         if (completion_done(&dev->power.completion))
         |                              ~~~~~~~~~~ ^

2 errors generated.

vim +212 sound/soc/sdca/sdca_interrupts.c

200
201 static irqreturn_t fdl_owner_handler(int irq, void *data)
202 {
203 struct sdca_interrupt *interrupt = data;
204 struct device *dev = interrupt->dev;
205 irqreturn_t irqret = IRQ_NONE;
206 int ret;
207
208 /*
209 * FDL has to run from the system resume handler, at which point
210 * we can't wait for the pm runtime.
211 */

 > 212		if (completion_done(&dev->power.completion)) {

213 ret = pm_runtime_get_sync(dev);
214 if (ret < 0) {
215 dev_err(dev, "failed to resume for fdl: %d\n", ret);
216 goto error;
217 }
218 }
219
220 ret = sdca_fdl_process(interrupt);
221 if (ret)
222 goto error;
223
224 irqret = IRQ_HANDLED;
225 error:
226 if (completion_done(&dev->power.completion))
227 pm_runtime_put(dev);
228 return irqret;
229 }
230

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw
Quoted 25 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9b7977f9e39b7768c70c2aa497f04e7569fd3e00
commit: ffd7e8a101110cba86925a2906d925e0db7102f3 [6348/6771] ASoC: SDCA: Device boot into the system suspend process
config: i386-randconfig-004-20260115 (https://download.01.org/0day-ci/archive/20260115/[email protected]/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/20260115/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

sound/soc/sdca/sdca_interrupts.c:212:34: error: no member named 'completion' in 'struct dev_pm_info'

     212 |         if (completion_done(&dev->power.completion)) {
         |                              ~~~~~~~~~~ ^
   sound/soc/sdca/sdca_interrupts.c:226:34: error: no member named 'completion' in 'struct dev_pm_info'
     226 |         if (completion_done(&dev->power.completion))
         |                              ~~~~~~~~~~ ^

2 errors generated.

vim +212 sound/soc/sdca/sdca_interrupts.c

Quoted 13 lines
   200	
   201	static irqreturn_t fdl_owner_handler(int irq, void *data)
   202	{
   203		struct sdca_interrupt *interrupt = data;
   204		struct device *dev = interrupt->dev;
   205		irqreturn_t irqret = IRQ_NONE;
   206		int ret;
   207	
   208		/*
   209		 * FDL has to run from the system resume handler, at which point
   210		 * we can't wait for the pm runtime.
   211		 */
Quoted 1 line

212 if (completion_done(&dev->power.completion)) {

Yeah turns out this is conditional on CONFIG_PM_SLEEP, will do a quick patch to fix this up.

Thanks,
Charles