Re: [PATCH] usb: fotg210: guard host shutdown in gadget-only builds
From: Greg Kroah-Hartman
Date: Mon Sep 14 2026 - 02:56:33 EST
On Mon, Sep 14, 2026 at 08:41:18AM +0200, Linus Walleij wrote:
> FOTG210 can be built with CONFIG_USB=n, but its shutdown callback
> references usb_hcd_platform_shutdown() from the USB host core,
> causing a link failure.
>
> Guard the call with CONFIG_USB_FOTG210_HCD so gadget-only builds do
> not reference the host shutdown helper.
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202609141128.DQicnuRW-lkp@xxxxxxxxx/
> Assisted-by: LLM
> Signed-off-by: Linus Walleij <linusw@xxxxxxxxxx>
> ---
> Fix the gadget-only build failure introduced by the FOTG210 common
> EHCI conversion by guarding the host shutdown call.
>
> Based on the complete FOTG210 modernization series. Verified with
> PowerPC64 gadget-only and Gemini host object builds using LLVM.
No Fixes: tag?
thanks,
greg k-h