Skip to contentSkip to conversation

x86/mtrr: Drop stale linux/kvm_para.h include

PATCH New WEI-HONG, YE 1 participant 1 message Jul 8

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/mtrr: Drop stale linux/kvm_para.h include

arch/x86/kernel/cpu/mtrr/mtrr.c includes linux/kvm_para.h for historical reasons. The include was needed for kvm_para_available() check in mtrr_trim_uncached_memory(), but that usage was removed by commit bf3647c44bc7 ("x86: tone down mtrr_trim_uncached_memory() warning").

Drop the stale linux/kvm_para.h include. This also removes the need for explicit linux/types.h workaround that existed only because kvm_para.h depended on it.

---
v1...v2: https://lore.kernel.org/all/[email protected]
- Drop the stale linux/kvm_para.h include from mtrr.c instead of adding linux/types to asm/kvm_para.h, as suggested by Sean.

 arch/x86/kernel/cpu/mtrr/mtrr.c | 3 ---
 1 file changed, 3 deletions(-)
arch/x86/kernel/cpu/mtrr/mtrr.c +0 -3
index 4b3d492afe17..db5bf4adfd28 100644
@@ -18,10 +18,7 @@
     System Programming Guide; Section 9.11. (1997 edition - PPro).
 */
 
-#include <linux/types.h> /* FIXME: kvm_para.h needs this */
-
 #include <linux/stop_machine.h>
-#include <linux/kvm_para.h>
 #include <linux/uaccess.h>
 #include <linux/export.h>
 #include <linux/mutex.h>
Signature · 1 line
2.48.1