From: Andrew Morton drivers/usb/core/hub.c: In function `hub_port_connect_change': drivers/usb/core/hub.c:2409: warning: implicit declaration of function `portspeed' Cc: Dan Williams Cc: Greg KH Signed-off-by: Andrew Morton --- drivers/usb/core/hub.c | 4 +--- linux/device.h | 0 2 files changed, 1 insertion(+), 3 deletions(-) diff -puN include/linux/device.h~dev_dbg-check-dev_dbg-arguments-fix include/linux/device.h diff -puN drivers/usb/core/hub.c~dev_dbg-check-dev_dbg-arguments-fix drivers/usb/core/hub.c --- a/drivers/usb/core/hub.c~dev_dbg-check-dev_dbg-arguments-fix +++ a/drivers/usb/core/hub.c @@ -119,8 +119,7 @@ MODULE_PARM_DESC(use_both_schemes, "first one fails"); -#ifdef DEBUG -static inline char *portspeed (int portstatus) +static inline char *portspeed(int portstatus) { if (portstatus & (1 << USB_PORT_FEAT_HIGHSPEED)) return "480 Mb/s"; @@ -129,7 +128,6 @@ static inline char *portspeed (int ports else return "12 Mb/s"; } -#endif /* Note that hdev or one of its children must be locked! */ static inline struct usb_hub *hdev_to_hub(struct usb_device *hdev) _