aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2022-03-08 20:20:22 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2022-05-06 00:00:20 +1000
commiteb4713c40a619046af99586743d48b9b4435d371 (patch)
tree6c89d982e6e98ad75fc3c8daacfdf7f64b64a13c /arch/powerpc
parentpowerpc: Don't include asm/prom.h in asm/parport.h (diff)
downloadlinux-dev-eb4713c40a619046af99586743d48b9b4435d371.tar.xz
linux-dev-eb4713c40a619046af99586743d48b9b4435d371.zip
powerpc: Include asm/reg.h in asm/svm.h
is_secure_guest() uses mfmsr(). Don't rely on users to include asm/reg.h, include it in asm/svm.h Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/482c82c8a29d5fb3ea279b34f107e0e775001344.1646767214.git.christophe.leroy@csgroup.eu
Diffstat (limited to '')
-rw-r--r--arch/powerpc/include/asm/svm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/svm.h b/arch/powerpc/include/asm/svm.h
index 7546402d796a..da864623cc00 100644
--- a/arch/powerpc/include/asm/svm.h
+++ b/arch/powerpc/include/asm/svm.h
@@ -10,6 +10,8 @@
#ifdef CONFIG_PPC_SVM
+#include <asm/reg.h>
+
static inline bool is_secure_guest(void)
{
return mfmsr() & MSR_S;