]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | Subject: Don't use <linux/kdb.h> outside CONFIG_KDB |
2 | From: schwab@suse.de | |
3 | Patch-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 | /* |