The chipidea ci_hdrc_imx driver uses regulator consumer API like regulator_enable() but does not include . The core USB HCD driver calls invalidate_kernel_vmap_range() and flush_kernel_vmap_range(), but does not include . The DWC3 gadget driver calls: - device_property_present() - device_property_count_u8() - device_property_read_u8_array() but does not include Similarly, dwc3-imx uses device_property_read_bool() without including . The dwc3-generic-plat driver uses of_device_get_match_data() but does not include . In all these cases, the necessary includes were still provided somehow, directly or indirectly, through . I found the following command to be quite helpful in figuring out the include chain: $ make KCFLAGS="-H" drivers/usb/dwc3/dwc3-imx.o Since wants to drop the unnecessary includes, fill in the required headers to avoid any breakage. Signed-off-by: Vladimir Oltean Acked-by: Thinh Nguyen # dwc3 Acked-by: Greg Kroah-Hartman --- Cc: Peter Chen Cc: Greg Kroah-Hartman Cc: Frank Li Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: Thinh Nguyen Cc: Xu Yang v6->v7: - add drivers/usb/dwc3/dwc3-imx.c to the list of patched files - collect tag from Greg, keeping it despite the new addition because the change is minor and in the same spirit as the rest (https://lore.kernel.org/linux-phy/2026033028-squint-yield-4c23@gregkh/) v2->v6: none v1->v2: collect tag --- drivers/usb/chipidea/ci_hdrc_imx.c | 1 + drivers/usb/core/hcd.c | 1 + drivers/usb/dwc3/dwc3-generic-plat.c | 1 + drivers/usb/dwc3/dwc3-imx.c | 1 + drivers/usb/dwc3/gadget.c | 1 + 5 files changed, 5 insertions(+) diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c index 56d2ba824a0b..0a21d7cc5f5a 100644 --- a/drivers/usb/chipidea/ci_hdrc_imx.c +++ b/drivers/usb/chipidea/ci_hdrc_imx.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "ci.h" #include "ci_hdrc_imx.h" diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 89221f1ce769..b3826ebcbe98 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include diff --git a/drivers/usb/dwc3/dwc3-generic-plat.c b/drivers/usb/dwc3/dwc3-generic-plat.c index ca69ac0eb07c..2f2ae6f4704f 100644 --- a/drivers/usb/dwc3/dwc3-generic-plat.c +++ b/drivers/usb/dwc3/dwc3-generic-plat.c @@ -8,6 +8,7 @@ */ #include +#include #include #include #include diff --git a/drivers/usb/dwc3/dwc3-imx.c b/drivers/usb/dwc3/dwc3-imx.c index 973a486b544d..6e122674edaf 100644 --- a/drivers/usb/dwc3/dwc3-imx.c +++ b/drivers/usb/dwc3/dwc3-imx.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "core.h" #include "glue.h" diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 3d4ca68e584c..b5a6fd2899f1 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include -- 2.34.1