]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: tegra: fix compile-testing PCI host driver
authorArnd Bergmann <arnd@arndb.de>
Mon, 28 May 2018 15:55:29 +0000 (17:55 +0200)
committerOlof Johansson <olof@lixom.net>
Sat, 2 Jun 2018 08:17:47 +0000 (01:17 -0700)
commit9bf8c7fc5fca1abb1cbf69fb769d9e8020d9b796
treee88eb3a520ae4d23f232d432bd3ecafa15931eff
parent54b87c79882ccb42bac696597d5ddd60b9fd3359
ARM: tegra: fix compile-testing PCI host driver

The tegra_cpuidle_pcie_irqs_in_use() function is stubbed out for non-ARM
builds, but now we can compile-test the Tegra pci driver on non-Tegra
ARM platforms as well, which results in a new link error:

drivers/pci/host/pci-tegra.o: In function `tegra_pcie_map_irq':
pci-tegra.c:(.text+0x288): undefined reference to `tegra_cpuidle_pcie_irqs_in_use'
drivers/pci/host/pci-tegra.o: In function `tegra_msi_map':
pci-tegra.c:(.text+0xba0): undefined reference to `tegra_cpuidle_pcie_irqs_in_use'

This adapts the #ifdef statement to match the exact condition under which
the function can be called.

Fixes: 19d54d191e1c ("PCI: Improve host drivers compile test coverage")
Cc: Rob Herring <robh@kernel.org>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
include/soc/tegra/cpuidle.h