[PATCH] ARM: scu: Should include asm/errno.h

From: Dave Gerlach
Date: Fri Feb 26 2016 - 17:07:36 EST


The stub for scu_power_mode returns -EINVAL if a !CONFIG_SMP build is
being done, and because this file can be included in files that are
shared between SMP and non-SMP platforms, we must make sure to
explicitly include asm/errno.h otherwise the build may fail based on
include order.

Reported-by: Dan Murphy <dmurphy@xxxxxx>
Signed-off-by: Dave Gerlach <d-gerlach@xxxxxx>
---
arch/arm/include/asm/smp_scu.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/include/asm/smp_scu.h b/arch/arm/include/asm/smp_scu.h
index bfe163c40024..e7f39655333a 100644
--- a/arch/arm/include/asm/smp_scu.h
+++ b/arch/arm/include/asm/smp_scu.h
@@ -8,6 +8,7 @@
#ifndef __ASSEMBLER__

#include <asm/cputype.h>
+#include <asm/errno.h>

static inline bool scu_a9_has_base(void)
{
--
2.7.2