Linux USB
 help / color / mirror / Atom feed
* [usb:usb-next 23/66] drivers/usb/dwc3/core.c:2501: undefined reference to `power_supply_unreg_notifier'
@ 2026-07-11 12:47 kernel test robot
  2026-07-12  8:00 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-07-11 12:47 UTC (permalink / raw)
  To: Elson Serrao; +Cc: oe-kbuild-all, linux-usb, Greg Kroah-Hartman

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
head:   1db5c6b0b9834aee2f14e39764becfcc29d09ccf
commit: 7c87ef27af79b3f905aed2edf9f60ce2a75d38e3 [23/66] usb: dwc3: avoid probe deferral when USB power supply is not available
config: parisc-randconfig-001-20260710 (https://download.01.org/0day-ci/archive/20260711/202607112037.tVbaUKOJ-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260711/202607112037.tVbaUKOJ-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/202607112037.tVbaUKOJ-lkp@intel.com/

All errors (new ones prefixed by >>):

   hppa-linux-ld: drivers/usb/dwc3/core.o: in function `dwc3_core_remove':
>> drivers/usb/dwc3/core.c:2501: undefined reference to `power_supply_unreg_notifier'
   hppa-linux-ld: drivers/usb/dwc3/core.o: in function `dwc3_get_usb_power_supply':
>> drivers/usb/dwc3/core.c:2245: undefined reference to `power_supply_reg_notifier'
   hppa-linux-ld: drivers/usb/dwc3/core.o: in function `dwc3_core_probe':
   drivers/usb/dwc3/core.c:2443: undefined reference to `power_supply_unreg_notifier'


vim +2501 drivers/usb/dwc3/core.c

  2476	
  2477	void dwc3_core_remove(struct dwc3 *dwc)
  2478	{
  2479		pm_runtime_get_sync(dwc->dev);
  2480	
  2481		dwc3_core_exit_mode(dwc);
  2482		dwc3_debugfs_exit(dwc);
  2483	
  2484		dwc3_core_exit(dwc);
  2485		dwc3_ulpi_exit(dwc);
  2486	
  2487		pm_runtime_allow(dwc->dev);
  2488		pm_runtime_disable(dwc->dev);
  2489		pm_runtime_dont_use_autosuspend(dwc->dev);
  2490		pm_runtime_put_noidle(dwc->dev);
  2491		/*
  2492		 * HACK: Clear the driver data, which is currently accessed by parent
  2493		 * glue drivers, before allowing the parent to suspend.
  2494		 */
  2495		dev_set_drvdata(dwc->dev, NULL);
  2496		pm_runtime_set_suspended(dwc->dev);
  2497	
  2498		dwc3_free_event_buffers(dwc);
  2499	
  2500		if (dwc->psy_nb.notifier_call)
> 2501			power_supply_unreg_notifier(&dwc->psy_nb);
  2502	
  2503		if (dwc->usb_psy) {
  2504			cancel_work_sync(&dwc->vbus_draw_work);
  2505			power_supply_put(dwc->usb_psy);
  2506		}
  2507	}
  2508	EXPORT_SYMBOL_GPL(dwc3_core_remove);
  2509	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [usb:usb-next 23/66] drivers/usb/dwc3/core.c:2501: undefined reference to `power_supply_unreg_notifier'
  2026-07-11 12:47 [usb:usb-next 23/66] drivers/usb/dwc3/core.c:2501: undefined reference to `power_supply_unreg_notifier' kernel test robot
@ 2026-07-12  8:00 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2026-07-12  8:00 UTC (permalink / raw)
  To: kernel test robot, Elson Serrao, oe-kbuild-all, linux-usb

On Sat, Jul 11, 2026 at 08:47:45PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
> head:   1db5c6b0b9834aee2f14e39764becfcc29d09ccf
> commit: 7c87ef27af79b3f905aed2edf9f60ce2a75d38e3 [23/66] usb: dwc3: avoid probe deferral when USB power supply is not available
> config: parisc-randconfig-001-20260710 (https://download.01.org/0day-ci/archive/20260711/202607112037.tVbaUKOJ-lkp@intel.com/config)
> compiler: hppa-linux-gcc (GCC) 9.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260711/202607112037.tVbaUKOJ-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/202607112037.tVbaUKOJ-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>    hppa-linux-ld: drivers/usb/dwc3/core.o: in function `dwc3_core_remove':
> >> drivers/usb/dwc3/core.c:2501: undefined reference to `power_supply_unreg_notifier'
>    hppa-linux-ld: drivers/usb/dwc3/core.o: in function `dwc3_get_usb_power_supply':
> >> drivers/usb/dwc3/core.c:2245: undefined reference to `power_supply_reg_notifier'
>    hppa-linux-ld: drivers/usb/dwc3/core.o: in function `dwc3_core_probe':
>    drivers/usb/dwc3/core.c:2443: undefined reference to `power_supply_unreg_notifier'

Elson, can you please provide a patch to fix this, or a revert of your
patch so that the build gets fixed?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-12  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-11 12:47 [usb:usb-next 23/66] drivers/usb/dwc3/core.c:2501: undefined reference to `power_supply_unreg_notifier' kernel test robot
2026-07-12  8:00 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox