Re: [PATCH] power: supply: add stubs for notifier registration helpers
From: Sebastian Reichel
Date: Thu Aug 06 2026 - 20:50:58 EST
On Wed, 05 Aug 2026 11:54:01 -0700, Elson Serrao wrote:
> power_supply_reg_notifier() and power_supply_unreg_notifier() are declared
> unconditionally, with no fallback when CONFIG_POWER_SUPPLY is disabled.
> Any driver that calls them unconditionally fails to link:
>
> ERROR: modpost: "power_supply_unreg_notifier" [drivers/usb/dwc3/dwc3.ko]
> undefined!
> ERROR: modpost: "power_supply_reg_notifier" [drivers/usb/dwc3/dwc3.ko]
> undefined!
>
> [...]
Applied, thanks!
[1/1] power: supply: add stubs for notifier registration helpers
commit: 99b38cda3f4c486cfbc40f3c8ede1703594e9f13
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>