x86/pkru: Remove useless include
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:15:57 +0000 (03:15 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 20 Oct 2021 13:27:25 +0000 (15:27 +0200)
PKRU code does not need anything from FPU headers. Include cpufeature.h
instead and fixup the resulting fallout in perf.

This is a preparation for FPU changes in order to prevent recursive include
hell.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211015011538.551522694@linutronix.de
arch/x86/events/perf_event.h
arch/x86/include/asm/pkru.h

index e3ac05c..134c08d 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <linux/perf_event.h>
 
+#include <asm/fpu/xstate.h>
 #include <asm/intel_ds.h>
 #include <asm/cpu.h>
 
index ccc539f..4cd49af 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef _ASM_X86_PKRU_H
 #define _ASM_X86_PKRU_H
 
-#include <asm/fpu/xstate.h>
+#include <asm/cpufeature.h>
 
 #define PKRU_AD_BIT 0x1
 #define PKRU_WD_BIT 0x2