Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1344735

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

From Dave Gerlach <d-gerlach@ti.com>
Newsgroups linux.kernel
Subject [PATCH] ARM: scu: Should include asm/errno.h
Date 2016-02-26 23:10 +0100
Message-ID <r6yKe-1lH-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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@ti.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
---
 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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] ARM: scu: Should include asm/errno.h Dave Gerlach <d-gerlach@ti.com> - 2016-02-26 23:10 +0100

csiph-web