From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suzuki.Poulose@arm.com (Suzuki K Poulose) Date: Thu, 14 Apr 2016 13:54:50 +0100 Subject: [PATCH v2 2/2] arm64: vhe: Verify CPU Exception Levels In-Reply-To: <20160414121947.GK30804@cbox> References: <1460472361-28419-2-git-send-email-suzuki.poulose@arm.com> <1460554893-26120-1-git-send-email-suzuki.poulose@arm.com> <20160414121947.GK30804@cbox> Message-ID: <570F931A.7020103@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 14/04/16 13:19, Christoffer Dall wrote: > On Wed, Apr 13, 2016 at 02:41:33PM +0100, Suzuki K Poulose wrote: >> diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c >> index b2d5f4e..e97af155 100644 >> --- a/arch/arm64/kernel/smp.c >> +++ b/arch/arm64/kernel/smp.c >> @@ -75,6 +75,43 @@ enum ipi_msg_type { >> IPI_WAKEUP >> }; >> >> +#ifdef CONFIG_ARM64_VHE >> + >> +/* Whether the boot CPU is running in HYP mode or not*/ >> +bool boot_cpu_hyp_mode; > > you can make this static now. Ah ! Good catch. > > Otherwise, > > Reviewed-by: Christoffer Dall Thanks Suzuki