All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Bilbao <bilbao@vt.edu>
To: Mark Rutland <mark.rutland@arm.com>
Cc: catalin.marinas@arm.com, will@kernel.org, maz@kernel.org,
	linux-arm-kernel@lits.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v1.1] arm64: Add missing header <asm/smp.h> in two files
Date: Thu, 08 Jul 2021 07:15:42 -0400	[thread overview]
Message-ID: <4325940.LvFx2qVVIh@iron-maiden> (raw)
In-Reply-To: <20210708093340.GB24650@C02TD0UTHF1T.local>

Add missing header <asm/smp.h> on include/asm/smp_plat.h, as it calls function 
cpu_logical_map(). Also include it on kernel/cpufeature.c since it has calls to 
functions cpu_panic_kernel() and cpu_die_early().

Both files call functions defined on this header, make the header dependencies 
less fragile.

Signed-off-by: Carlos Bilbao <bilbao@vt.edu>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---
Changelog:  
v1.1: Include the header in alphabetical order.
---
 arch/arm64/include/asm/smp_plat.h | 1 +
 arch/arm64/kernel/cpufeature.c    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm64/include/asm/smp_plat.h b/arch/arm64/include/asm/smp_plat.h
index 99ad77df8f52..97ddc6c203b7 100644
--- a/arch/arm64/include/asm/smp_plat.h
+++ b/arch/arm64/include/asm/smp_plat.h
@@ -10,6 +10,7 @@
 
 #include <linux/cpumask.h>
 
+#include <asm/smp.h>
 #include <asm/types.h>
 
 struct mpidr_hash {
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 125d5c9471ac..0ead8bfedf20 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -81,6 +81,7 @@
 #include <asm/mmu_context.h>
 #include <asm/mte.h>
 #include <asm/processor.h>
+#include <asm/smp.h>
 #include <asm/sysreg.h>
 #include <asm/traps.h>
 #include <asm/virt.h>
-- 
2.25.1








  reply	other threads:[~2021-07-08 11:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-07 17:54 [PATCH] arm64: Add missing header <asm/smp.h> in two files Carlos Bilbao
2021-07-08  9:33 ` Mark Rutland
2021-07-08 11:15   ` Carlos Bilbao [this message]
2021-07-12 12:50     ` [PATCH v1.1] " Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4325940.LvFx2qVVIh@iron-maiden \
    --to=bilbao@vt.edu \
    --cc=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lits.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.