serial: 8250_hp300: trivial: fix symbol name in #warning message
PATCH 1/1 serial: 8250_hp300: trivial: fix symbol name in #warning message
The symbol is defined in drivers/tty/serial/8250/Kconfig as "SERIAL_8250", not just "8250".
Signed-off-by Daniele Forsi <[email protected]>
--- drivers/tty/serial/8250/8250_hp300.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/tty/serial/8250/8250_hp300.c +4 -0
@@ -24,6 +24,10 @@#warning CONFIG_8250 defined but neither CONFIG_HPDCA nor CONFIG_HPAPCI defined, are you sure?#endif +#if !defined(CONFIG_HPDCA ) && !defined(CONFIG_HPAPCI ) +#warning CONFIG_SERIAL_8250 defined but neither CONFIG_HPDCA nor CONFIG_HPAPCI defined, are you sure? +#endif +#ifdef CONFIG_HPAPCI struct hp300_port {
Signature · 1 line
2.0.1
Greg Kroah-Hartman
maintainerQuoted 13 lines · Daniele Forsi
The symbol is defined in
drivers/tty/serial/8250/Kconfigas "SERIAL_8250", not just "8250".Signed-off-by Daniele Forsi <[email protected]>--- drivers/tty/serial/8250/8250_hp300.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/tty/serial/8250/8250_hp300.c +0
-0
drivers/tty/serial/8250/8250_hp300.c line 29
Quoted 6 lines
drivers/tty/serial/8250/8250_hp300.c +3
-0@@ -24,6 +24,10 @@#warning CONFIG_8250 defined but neither CONFIG_HPDCA nor CONFIG_HPAPCI defined, are you sure?#endif +#if !defined(CONFIG_HPDCA ) && !defined(CONFIG_HPAPCI ) +#warning CONFIG_SERIAL_8250 defined but neither CONFIG_HPDCA nor CONFIG_HPAPCI defined, are you sure? +#endif
Shouldn't you just change the line before this one with the proper config option?
thanks,
greg k-h
PATCH v2 1/1 serial: 8250_hp300: trivial: fix symbol name in #warning message
The symbol is defined in drivers/tty/serial/8250/Kconfig as "SERIAL_8250", not just "8250".
Signed-off-by Daniele Forsi <[email protected]>
---
Changes in v2:
- fix the original message and do not duplicate the whole check
drivers/tty/serial/8250/8250_hp300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/8250/8250_hp300.c +1 -1
@@ -21,7 +21,7 @@#include "8250.h" #if !defined(CONFIG_HPDCA ) && !defined(CONFIG_HPAPCI ) -#warning CONFIG_8250 defined but neither CONFIG_HPDCA nor CONFIG_HPAPCI defined, are you sure? +#warning CONFIG_SERIAL_8250 defined but neither CONFIG_HPDCA nor CONFIG_HPAPCI defined, are you sure?#endif #ifdef CONFIG_HPAPCI
Signature · 1 line
2.0.1