soc/tegra: irq: Add stubs needed for compile testing
authorDmitry Osipenko <digetx@gmail.com>
Sun, 12 Sep 2021 20:29:03 +0000 (23:29 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 4 Oct 2021 19:27:21 +0000 (21:27 +0200)
Add stubs needed for compile-testing of tegra-cpuidle driver.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/soc/tegra/irq.h

index 8eb11a7..9453955 100644 (file)
@@ -6,8 +6,15 @@
 #ifndef __SOC_TEGRA_IRQ_H
 #define __SOC_TEGRA_IRQ_H
 
-#if defined(CONFIG_ARM)
+#include <linux/types.h>
+
+#if defined(CONFIG_ARM) && defined(CONFIG_ARCH_TEGRA)
 bool tegra_pending_sgi(void);
+#else
+static inline bool tegra_pending_sgi(void)
+{
+       return false;
+}
 #endif
 
 #endif /* __SOC_TEGRA_IRQ_H */