From: Randy Dunlap Date: Thu, 25 Mar 2010 18:29:16 +0000 (-0700) Subject: usb: fix serial build when SYSRQ is disabled X-Git-Tag: v2.6.35-rc1~471^2~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f0ae3a8eeb7f231dc99cee7c871ba64e07ebefe;p=platform%2Fkernel%2Flinux-3.10.git usb: fix serial build when SYSRQ is disabled Fix build error when CONFIG_MAGIC_SYSRQ is not enabled: drivers/usb/serial/generic.c:566: error: implicit declaration of function 'handle_sysrq' Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index ba61c74..a5e6109 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -558,6 +559,7 @@ void usb_serial_generic_unthrottle(struct tty_struct *tty) } } +#ifdef CONFIG_MAGIC_SYSRQ int usb_serial_handle_sysrq_char(struct tty_struct *tty, struct usb_serial_port *port, unsigned int ch) { @@ -571,6 +573,13 @@ int usb_serial_handle_sysrq_char(struct tty_struct *tty, } return 0; } +#else +int usb_serial_handle_sysrq_char(struct tty_struct *tty, + struct usb_serial_port *port, unsigned int ch) +{ + return 0; +} +#endif EXPORT_SYMBOL_GPL(usb_serial_handle_sysrq_char); int usb_serial_handle_break(struct usb_serial_port *port)