diff mbox series

usb: misc: onboard_hub: Fix 'missing prototype' warning

Message ID 20220711092431.1.I4016c759fd7fe2b32dd482994a20661f36e2cae3@changeid (mailing list archive)
State Accepted
Commit 2d937c64e8bf3d9b11b1d62d37fbe97b3cd5dc8d
Headers show
Series usb: misc: onboard_hub: Fix 'missing prototype' warning | expand

Commit Message

Matthias Kaehlcke July 11, 2022, 4:25 p.m. UTC
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>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---

 drivers/usb/misc/onboard_usb_hub_pdevs.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Doug Anderson July 11, 2022, 4:28 p.m. UTC | #1
Hi,

On Mon, Jul 11, 2022 at 9:25 AM Matthias Kaehlcke <mka@chromium.org> wrote:
>
> 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>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
>
>  drivers/usb/misc/onboard_usb_hub_pdevs.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Douglas Anderson <dianders@chromium.org>
diff mbox series

Patch

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"