From: David Brownell Date: Fri, 23 Mar 2007 19:51:55 +0000 (-0700) Subject: USB: fix usb-serial/generic build warning X-Git-Tag: v2.6.21-rc6~116^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b46d60fc4b2665107a04f75e5381294bfaf20177;p=linux-2.6-omap-h63xx.git USB: fix usb-serial/generic build warning Fix annoying build warning when CONFIG_USB_SERIAL_GENERIC is undefined. drivers/usb/serial/generic.c:24: warning: `generic_probe' declared `static' but never defined Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 53baeec8f26..4f8282ad772 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c @@ -20,13 +20,14 @@ #include #include -static int generic_probe(struct usb_interface *interface, - const struct usb_device_id *id); - static int debug; #ifdef CONFIG_USB_SERIAL_GENERIC + +static int generic_probe(struct usb_interface *interface, + const struct usb_device_id *id); + static __u16 vendor = 0x05f9; static __u16 product = 0xffff;