]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.suse/kdb-serial-8250
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.suse / kdb-serial-8250
CommitLineData
2cb7cef9
BS
1Subject: Don't use <linux/kdb.h> outside CONFIG_KDB
2From: schwab@suse.de
3Patch-mainline: never
4
5---
6 drivers/serial/8250.c | 4 +++-
7 1 file changed, 3 insertions(+), 1 deletion(-)
8
9--- a/drivers/serial/8250.c
10+++ b/drivers/serial/8250.c
11@@ -43,8 +43,8 @@
12 #include <asm/irq.h>
13
14 #include "8250.h"
15-#include <linux/kdb.h>
16 #ifdef CONFIG_KDB
17+#include <linux/kdb.h>
18 /*
19 * kdb_serial_line records the serial line number of the first serial console.
20 * NOTE: The kernel ignores characters on the serial line unless a user space
21@@ -55,6 +55,8 @@
22
23 static int kdb_serial_line = -1;
24 static const char *kdb_serial_ptr = kdb_serial_str;
25+#else
26+#define KDB_8250() 0
27 #endif /* CONFIG_KDB */
28
29 /*