projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0707134
)
powerpc: Include asm/reg.h in asm/svm.h
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Tue, 8 Mar 2022 19:20:22 +0000
(20:20 +0100)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 5 May 2022 14:00:20 +0000
(
00:00
+1000)
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
arch/powerpc/include/asm/svm.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/svm.h
b/arch/powerpc/include/asm/svm.h
index
7546402
..
da86462
100644
(file)
--- 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;