Skip to contentSkip to conversation

serial: 8250_hp300: trivial: fix symbol name in #warning message

PATCH Superseded Daniele Forsi 2 participants 3 messages Aug 8, 2014 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

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".

---
 drivers/tty/serial/8250/8250_hp300.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/tty/serial/8250/8250_hp300.c +4 -0
index 5bdaf27..f155328 100644
@@ -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
#1 lore raw
Quoted 13 lines · Daniele Forsi

The symbol is defined in drivers/tty/serial/8250/Kconfig as "SERIAL_8250", not just "8250".

---
 drivers/tty/serial/8250/8250_hp300.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/tty/serial/8250/8250_hp300.c +0 -0
index 5bdaf27..f155328 100644

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

#2 lore raw

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".

---
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
index 5bdaf27..afffe4d 100644
@@ -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