ARM: tegra: hotplug: Include missing common.h
Subsystems (3)
PATCH 1/4 ARM: tegra: hotplug: Include missing common.h
From: Thierry Reding <[email protected]>
Some of the functions implemented are flagged as not having a prototype defined when building with W=1. Include the header to avoid these build warnings.
--- arch/arm/mach-tegra/common.h | 22 ++++++++++++++++++++++ arch/arm/mach-tegra/hotplug.c | 1 + 2 files changed, 23 insertions(+)
arch/arm/mach-tegra/common.h +22 -0
@@ -1,4 +1,26 @@ +/* +* Copyright (c) 2011, ARM Ltd. +* Copyright (c) 2013, NVIDIA Corporation. All rights reserved. +* +* This program is free software; you can redistribute it and/or modify it +* under the terms and conditions of the GNU General Public License, +* version 2, as published by the Free Software Foundation. +* +* This program is distributed in the hope it will be useful, but WITHOUT +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +* more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __MACH_TEGRA_COMMON_H +#define __MACH_TEGRA_COMMON_H +extern const struct smp_operations tegra_smp_ops;extern int tegra_cpu_kill (unsigned int cpu);extern void tegra_cpu_die (unsigned int cpu); + +#endif
arch/arm/mach-tegra/hotplug.c +1 -0
@@ -17,6 +17,7 @@#include <asm/smp_plat.h> +#include "common.h" #include "sleep.h" static void (*tegra_hotplug_shutdown)(void );
Signature · 1 line
2.8.0
PATCH 2/4 ARM: tegra: cpuidle: Add missing cpuidle.h include
From: Thierry Reding <[email protected]>
Some of the functions implemented are flagged as not having a prototype defined when building with W=1. Include the header to avoid these build warnings and add a prototype as well as a dummy implementation for the tegra_cpuidle_pcie_irqs_in_use() function.
--- arch/arm/mach-tegra/cpuidle-tegra114.c | 1 + arch/arm/mach-tegra/cpuidle-tegra20.c | 1 + arch/arm/mach-tegra/cpuidle-tegra30.c | 1 + arch/arm/mach-tegra/cpuidle.h | 2 ++ 4 files changed, 5 insertions(+)
arch/arm/mach-tegra/cpuidle-tegra114.c +1 -0
@@ -26,6 +26,7 @@#include <asm/suspend.h> #include <asm/psci.h> +#include "cpuidle.h" #include "pm.h" #include "sleep.h"
arch/arm/mach-tegra/cpuidle-tegra20.c +1 -0
@@ -30,6 +30,7 @@#include <asm/smp_plat.h> #include <asm/suspend.h> +#include "cpuidle.h" #include "flowctrl.h" #include "iomap.h" #include "irq.h"
arch/arm/mach-tegra/cpuidle-tegra30.c +1 -0
@@ -30,6 +30,7 @@#include <asm/smp_plat.h> #include <asm/suspend.h> +#include "cpuidle.h" #include "pm.h" #include "sleep.h"
arch/arm/mach-tegra/cpuidle.h +2 -0
@@ -23,8 +23,10 @@ void tegra20_cpuidle_pcie_irqs_in_use(void);int tegra30_cpuidle_init (void );int tegra114_cpuidle_init (void );void tegra_cpuidle_init (void ); +void tegra_cpuidle_pcie_irqs_in_use (void );#else static inline void tegra_cpuidle_init (void ) {} +static inline void tegra_cpuidle_pcie_irqs_in_use (void ) {}#endif #endif
Signature · 1 line
2.8.0
PATCH 3/4 ARM: tegra: irq: Add missing irq.h include
In reply to Thierry RedingFrom: Thierry Reding <[email protected]>
Some of the functions implemented are flagged as not having a prototype defined when building with W=1. Include the header to avoid these build warnings.
--- arch/arm/mach-tegra/irq.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-tegra/irq.c +1 -0
@@ -29,6 +29,7 @@#include "board.h" #include "iomap.h" +#include "irq.h" #define SGI_MASK 0xFFFF
Signature · 1 line
2.8.0
PATCH 4/4 ARM: tegra: pm: Add tegra_cpu_do_idle() prototype
In reply to Thierry RedingFrom: Thierry Reding <[email protected]>
When building with W=1 this function is flagged as not having a prototype defined. Add the prototype to avoid a build warning.
--- arch/arm/mach-tegra/pm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-tegra/pm.h +1 -1
@@ -36,7 +36,7 @@ void tegra30_sleep_core_init(void);void tegra_clear_cpu_in_lp2 (void );bool tegra_set_cpu_in_lp2 (void ); - +int tegra_cpu_do_idle (void );void tegra_idle_lp2_last (void );extern void (*tegra_tear_down_cpu)(void );
Signature · 1 line
2.8.0