USB: fix compiler issues with newer gcc versions

Remove complaint from newer GCCs; they don't like forward function
declarations except in top-level contexts.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by David Brownell and committed by Greg Kroah-Hartman 11bd44ab 23b0d968

+1 -2
+1 -2
drivers/usb/core/hub.c
··· 1188 1189 #ifdef CONFIG_USB_OTG 1190 #include "otg_whitelist.h" 1191 #endif 1192 1193 /** ··· 1290 * (Includes HNP test device.) 1291 */ 1292 if (udev->bus->b_hnp_enable || udev->bus->is_b_host) { 1293 - static int __usb_port_suspend(struct usb_device *, 1294 - int port1); 1295 err = __usb_port_suspend(udev, udev->bus->otg_port); 1296 if (err < 0) 1297 dev_dbg(&udev->dev, "HNP fail, %d\n", err);
··· 1188 1189 #ifdef CONFIG_USB_OTG 1190 #include "otg_whitelist.h" 1191 + static int __usb_port_suspend(struct usb_device *, int port1); 1192 #endif 1193 1194 /** ··· 1289 * (Includes HNP test device.) 1290 */ 1291 if (udev->bus->b_hnp_enable || udev->bus->is_b_host) { 1292 err = __usb_port_suspend(udev, udev->bus->otg_port); 1293 if (err < 0) 1294 dev_dbg(&udev->dev, "HNP fail, %d\n", err);