public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb/serial/generic: Fix compile error
@ 2010-04-11 15:29 Javier Martinez Canillas
  2010-04-12  3:04 ` Dmitry Torokhov
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Javier Martinez Canillas @ 2010-04-11 15:29 UTC (permalink / raw)
  To: kernel-janitors

usb/serial/generic.c gives me a compile error when CONFIG_MAGIC_SYSRQ is
not defined.

The problem is that usb_serial_handle_sysrq_char() calls handle_sysrq()
that only is defined if CONFIG_MAGIC_SYSRQ is defined.

This patch add an empty handle_sysrq inline function if
CONFIG_MAGIC_SYSRQ is not defined and generic.c compiles cleanly.

From 9c484ab9136f25bf55b7664116a5f3b78eae69dc Mon Sep 17 00:00:00 2001
From: Javier Martinez Canillas <martinez.javier@gmail.com>
Date: Sun, 11 Apr 2010 11:14:22 -0400
Subject: [PATCH] usb/serial/generic: Fix compile error


Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
 include/linux/sysrq.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/linux/sysrq.h b/include/linux/sysrq.h
index 5f2bdef..0b754c1 100644
--- a/include/linux/sysrq.h
+++ b/include/linux/sysrq.h
@@ -53,6 +53,11 @@ int sysrq_toggle_support(int enable_mask);
 
 #else
 
+static inline void handle_sysrq(int key, struct tty_struct *tty)
+{
+
+}
+
 static inline int register_sysrq_key(int key, struct sysrq_key_op *op)
 {
 	return -EINVAL;
-- 
1.6.0.4











^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-14 16:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-11 15:29 [PATCH] usb/serial/generic: Fix compile error Javier Martinez Canillas
2010-04-12  3:04 ` Dmitry Torokhov
2010-04-12  3:59 ` Javier Martinez Canillas
2010-04-14 15:45 ` Randy Dunlap
2010-04-14 15:59 ` Dmitry Torokhov
2010-04-14 16:07 ` Randy Dunlap
2010-04-14 16:24 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox