From: David Brownell Remove complaint from newer GCCs; they don't like forward function declarations except in top-level contexts. Signed-off-by: David Brownell Cc: Greg KH Signed-off-by: Andrew Morton --- drivers/usb/core/hub.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN drivers/usb/core/hub.c~usb-hub-build-fix drivers/usb/core/hub.c --- a/drivers/usb/core/hub.c~usb-hub-build-fix +++ a/drivers/usb/core/hub.c @@ -1194,6 +1194,7 @@ static void show_string(struct usb_devic #ifdef CONFIG_USB_OTG #include "otg_whitelist.h" +static int __usb_port_suspend(struct usb_device *, int port1); #endif static int __usb_new_device(void *void_data) @@ -1286,8 +1287,6 @@ static int __usb_new_device(void *void_d * (Includes HNP test device.) */ if (udev->bus->b_hnp_enable || udev->bus->is_b_host) { - static int __usb_port_suspend(struct usb_device *, - int port1); err = __usb_port_suspend(udev, udev->bus->otg_port); if (err < 0) dev_dbg(&udev->dev, "HNP fail, %d\n", err); _