x86/pci: Reducde #ifdeffery in PCI init code
authorThomas Gleixner <tglx@linutronix.de>
Wed, 26 Aug 2020 11:16:49 +0000 (13:16 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 16 Sep 2020 14:52:35 +0000 (16:52 +0200)
commit445d3595ab290ba16ca5f202c7a67d71460cb39f
treef4751284caa72b443877a18a8e8f72386c1e4b93
parentbb733e4336988e40072c759fb27057b5fe82c7d4
x86/pci: Reducde #ifdeffery in PCI init code

Adding a function call before the first #ifdef in arch_pci_init() triggers
a 'mixed declarations and code' warning if PCI_DIRECT is enabled.

Use stub functions and move the #ifdeffery to the header file where it is
not in the way.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200826112332.767707340@linutronix.de
arch/x86/include/asm/pci_x86.h
arch/x86/pci/init.c