]> git.baikalelectronics.ru Git - uboot.git/commit
pci: provide prototype for pci_skip_dev outside of #if defined(CONFIG_DM_PCI_COMPAT)
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 17 Sep 2021 12:11:20 +0000 (15:11 +0300)
committerTom Rini <trini@konsulko.com>
Sun, 3 Oct 2021 18:40:56 +0000 (14:40 -0400)
commit70ebf4b269ad336fba2c1b1c5cbbda6a5d47d5b7
treea24ea5e3f51ecfc5dd0ff8744685f3323a02397d
parentf76dcb15ab9fd60a14b34816db6b6106e5c3a45a
pci: provide prototype for pci_skip_dev outside of #if defined(CONFIG_DM_PCI_COMPAT)

The weak definition of pci_skip_dev from drivers/pci/pci_common.c is not
under CONFIG_DM_PCI_COMPAT, and that definition needs a previous
function prototype declaration to avoid W=1 build warnings.

That prototype is not available due to it being under CONFIG_DM_PCI_COMPAT,
so move it outside of that preprocessor block.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
include/pci.h