mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
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
This commit is contained in:
parent
07071346bb
commit
eb4713c40a
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
#ifdef CONFIG_PPC_SVM
|
#ifdef CONFIG_PPC_SVM
|
||||||
|
|
||||||
|
#include <asm/reg.h>
|
||||||
|
|
||||||
static inline bool is_secure_guest(void)
|
static inline bool is_secure_guest(void)
|
||||||
{
|
{
|
||||||
return mfmsr() & MSR_S;
|
return mfmsr() & MSR_S;
|
||||||
|
|
Loading…
Reference in a new issue