summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2022-07-11 18:25:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-14 16:09:32 +0200
commit2d937c64e8bf3d9b11b1d62d37fbe97b3cd5dc8d (patch)
tree610971f36fe981bc11e54ed7ea49c83f93e8480c /drivers/usb/misc
parentRevert "dt-bindings: usb: mtk-xhci: Make all clocks required" (diff)
downloadlinux-2d937c64e8bf3d9b11b1d62d37fbe97b3cd5dc8d.tar.xz
linux-2d937c64e8bf3d9b11b1d62d37fbe97b3cd5dc8d.zip
usb: misc: onboard_hub: Fix 'missing prototype' warning
When building with 'W=1' the compiler complains about missing prototypes for onboard_hub_create/destroy_pdevs(). Include the header with the prototypes to fix this. Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Link: https://lore.kernel.org/r/20220711092431.1.I4016c759fd7fe2b32dd482994a20661f36e2cae3@changeid Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r--drivers/usb/misc/onboard_usb_hub_pdevs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/misc/onboard_usb_hub_pdevs.c b/drivers/usb/misc/onboard_usb_hub_pdevs.c
index a0a5f719129f..ed22a18f4ab7 100644
--- a/drivers/usb/misc/onboard_usb_hub_pdevs.c
+++ b/drivers/usb/misc/onboard_usb_hub_pdevs.c
@@ -15,6 +15,7 @@
#include <linux/usb.h>
#include <linux/usb/hcd.h>
#include <linux/usb/of.h>
+#include <linux/usb/onboard_hub.h>
#include "onboard_usb_hub.h"