Skip to contentSkip to conversation

ns16550: #ifdef-ary

PATCH Superseded Jan Beulich 2 participants 4 messages Nov 19, 2020 – Dec 7, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ns16550: #ifdef-ary

1: "com<N>=" command line options are x86-specific 2: drop stray "#ifdef CONFIG_HAS_PCI"

Jan

#1 lore raw

PATCH 1/2 ns16550: "com<N>=" command line options are x86-specific

Pure code motion (plus the addition of "#ifdef CONFIG_X86); no functional change intended.

docs/misc/xen-command-line.pandoc +2 -2
@@ -318,8 +318,8 @@ Interrupts.  Specifying zero disables CM
 Flag to indicate whether to probe for a CMOS Real Time Clock irrespective of
 ACPI indicating none to be there.
 
-### com1
-### com2
+### com1 (x86)
+### com2 (x86)
 > `= <baud>[/<base-baud>][,[DPS][,[<io-base>|pci|amt][,[<irq>|msi][,[<port-bdf>][,[<bridge-bdf>]]]]]]`
 
 Both option `com1` and `com2` follow the same format.
xen/drivers/char/ns16550.c +73 -69

178 lines not on this page · raw message

#2 lore raw

PATCH 2/2 ns16550: drop stray "#ifdef CONFIG_HAS_PCI"

In reply to Jan Beulich

There's no point wrapping the function invocation when
- the function body is already suitably wrapped,
- the function itself is unconditionally available.

xen/drivers/char/ns16550.c +0 -2
@@ -968,9 +968,7 @@ static int __init check_existence(struct
     return 1; /* Everything is MMIO */
 #endif
 
-#ifdef CONFIG_HAS_PCI
     pci_serial_early_init(uart);
-#endif
 
     /*
      * Do a simple existence test first; if we fail this,