]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: tegra: hotplug: Include missing common.h
authorThierry Reding <treding@nvidia.com>
Thu, 28 Apr 2016 12:50:14 +0000 (14:50 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 10 Jun 2016 14:17:58 +0000 (16:17 +0200)
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.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/mach-tegra/common.h
arch/arm/mach-tegra/hotplug.c

index 1f6fb808e2363e2c44f9be364252b9a070668aae..4cc00e993b00a9e0fd52d358e1f0c371f7f0bf7b 100644 (file)
@@ -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
index 1b129899a277f1853b6309782caac72f1f4a45d3..8ec70782607296ae8a61c49eae8ac3f154864134 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <asm/smp_plat.h>
 
+#include "common.h"
 #include "sleep.h"
 
 static void (*tegra_hotplug_shutdown)(void);