mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 16:53:54 +08:00
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 <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
8a61499bc7
commit
b46d60fc4b
@ -20,13 +20,14 @@
|
||||
#include <linux/usb/serial.h>
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user