Messages in this thread Patch in this message | | | From | Christophe Leroy <> | Subject | [PATCH v1 3/6] powerpc: Include asm/reg.h in asm/svm.h | Date | Tue, 8 Mar 2022 20:20:22 +0100 |
| |
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> --- arch/powerpc/include/asm/svm.h | 2 ++ 1 file changed, 2 insertions(+)
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; -- 2.34.1
| |