x86/mm: Include spinlock_t definition in pgtable.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 2 Nov 2021 16:52:24 +0000 (17:52 +0100)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 9 Dec 2021 18:58:48 +0000 (10:58 -0800)
commit35fa745286ac44ee26ed100c2bd2553368ad193b
treef518df67192cc61c8bf0edecae37fc46db6b5e67
parent71d5049b053876afbde6c3273250b76935494ab2
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 <bigeasy@linutronix.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lkml.kernel.org/r/20211102165224.wpz4zyhsvwccx5p3@linutronix.de
arch/x86/include/asm/pgtable.h