[PATCH 1/2] arm64: smp: Include smp_plat.h from smp.h
From: Florian Fainelli
Date: Thu May 30 2019 - 19:09:21 EST
Most architectures provide the cpu_logical_map[] definition as part of
asm/smp.h, which is included by linux/smp.h. For irqchip drivers that
work across a variety of platforms (MIPS, ARM, ARM64, etc.), and making
use of cpu_logical_map[] this avoids making any architecture specific
include in those drivers.
smp_plat.h uses -EINVAL, so make sure that header file include
linux/errmo.h.
Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
---
arch/arm64/include/asm/smp.h | 1 +
arch/arm64/include/asm/smp_plat.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm64/include/asm/smp.h b/arch/arm64/include/asm/smp.h
index 18553f399e08..259135d07a75 100644
--- a/arch/arm64/include/asm/smp.h
+++ b/arch/arm64/include/asm/smp.h
@@ -37,6 +37,7 @@
#ifndef __ASSEMBLY__
#include <asm/percpu.h>
+#include <asm/smp_plat.h>
#include <linux/threads.h>
#include <linux/cpumask.h>
diff --git a/arch/arm64/include/asm/smp_plat.h b/arch/arm64/include/asm/smp_plat.h
index af58dcdefb21..eab572cff56c 100644
--- a/arch/arm64/include/asm/smp_plat.h
+++ b/arch/arm64/include/asm/smp_plat.h
@@ -20,6 +20,7 @@
#define __ASM_SMP_PLAT_H
#include <linux/cpumask.h>
+#include <linux/errno.h>
#include <asm/types.h>
--
2.17.1