Skip to content

Commit 35fa745

Browse files
Sebastian Andrzej Siewiorhansendc
authored andcommitted
x86/mm: Include spinlock_t definition in pgtable.
This header file provides forward declartion for pgd_lock but does not include the header defining its type. This works since the definition of spinlock_t is usually included somehow via printk. By trying to avoid recursive includes on PREEMPT_RT I avoided the loop in printk and as a consequnce kernel/intel.c failed to compile due to missing type definition. Include the needed definition for spinlock_t. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 71d5049 commit 35fa745

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/include/asm/pgtable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#define pgprot_decrypted(prot) __pgprot(__sme_clr(pgprot_val(prot)))
2323

2424
#ifndef __ASSEMBLY__
25+
#include <linux/spinlock.h>
2526
#include <asm/x86_init.h>
2627
#include <asm/pkru.h>
2728
#include <asm/fpu/api.h>

0 commit comments

Comments
 (0)