diff options
author | Kyle McMartin <kyle@redhat.com> | 2013-08-27 14:52:34 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-08-29 16:54:34 -0400 |
commit | f97c43bbdf8a1ea42477b1a804a48e7e368cb13c (patch) | |
tree | 877f116ace73eb520ee9225567cc8c6141301c2d | |
parent | dc05ee32985585ba1d4c80ea4d904e34a8f92ef4 (diff) |
tegra-cpuidle: provide stub when !CONFIG_CPU_IDLE
While poking at something using the for-3.12/* trees, I hit the
following compile error:
drivers/built-in.o: In function `tegra_pcie_map_irq':
/builddir/build/BUILD/kernel-3.10.fc20/linux-3.11.0-0.rc6.git4.1.fc20.armv7hl/drivers/pci/host/pci-tegra.c:640:
undefined reference to `tegra_cpuidle_pcie_irqs_in_use'
drivers/built-in.o: In function `tegra_msi_map':
/builddir/build/BUILD/kernel-3.10.fc20/linux-3.11.0-0.rc6.git4.1.fc20.armv7hl/drivers/pci/host/pci-tegra.c:1227:
undefined reference to `tegra_cpuidle_pcie_irqs_in_use'
make: *** [vmlinux] Error 1
Since our .config had CONFIG_CPU_IDLE off. We should probably provide
an empty function to handle this to avoid cluttering up pci-tegra.c
with conditionals.
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
[swarren, removed unnecessary return statement]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | include/linux/tegra-cpuidle.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/tegra-cpuidle.h b/include/linux/tegra-cpuidle.h index dda3647242a4..9c6286bbf662 100644 --- a/include/linux/tegra-cpuidle.h +++ b/include/linux/tegra-cpuidle.h | |||
@@ -14,6 +14,12 @@ | |||
14 | #ifndef __LINUX_TEGRA_CPUIDLE_H__ | 14 | #ifndef __LINUX_TEGRA_CPUIDLE_H__ |
15 | #define __LINUX_TEGRA_CPUIDLE_H__ | 15 | #define __LINUX_TEGRA_CPUIDLE_H__ |
16 | 16 | ||
17 | #ifdef CONFIG_CPU_IDLE | ||
17 | void tegra_cpuidle_pcie_irqs_in_use(void); | 18 | void tegra_cpuidle_pcie_irqs_in_use(void); |
19 | #else | ||
20 | static inline void tegra_cpuidle_pcie_irqs_in_use(void) | ||
21 | { | ||
22 | } | ||
23 | #endif | ||
18 | 24 | ||
19 | #endif | 25 | #endif |