]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
x86/pkru: Remove useless include
authorThomas Gleixner <tglx@linutronix.de>
Fri, 15 Oct 2021 01:15:57 +0000 (03:15 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:55:50 +0000 (11:55 +0200)
BugLink: https://bugs.launchpad.net/bugs/1967750
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
(cherry picked from commit b50854eca0e014c2d3738073b387ab8ec85118ab)
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
arch/x86/events/perf_event.h
arch/x86/include/asm/pkru.h

index e3ac05c97b5e59b8546db80b8e464acbe3b91cd7..134c08df734060a747a4ead6b004f63c56382fff 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 4d8b9448fe8d27224cced7459e371d9f13e85bb6..74f0a2d34ffdd0ea26f73ad0b936240048babf6e 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 0x1u
 #define PKRU_WD_BIT 0x2u