Skip to contentSkip to conversation

KVM: arm64: vgic: Replace kernel.h with the necessary inclusions

PATCH Applied Andy Shevchenko 2 participants 2 messages Jan 4, 2022 KVM arm64

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 KVM: arm64: vgic: Replace kernel.h with the necessary inclusions

The arm_vgic.h does not require all the stuff the kernel.h provides. Replace kernel.h inclusion with the list of what is really being used.

---
v2: updated commit message by dropping unrelated paragraph (Marc)

 include/kvm/arm_vgic.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/kvm/arm_vgic.h +3 -1
index e602d848fc1a..bb30a6803d9f 100644
@@ -5,9 +5,11 @@
 #ifndef __KVM_ARM_VGIC_H
 #define __KVM_ARM_VGIC_H
 
-#include <linux/kernel.h>
+#include <linux/bits.h>
 #include <linux/kvm.h>
 #include <linux/irqreturn.h>
+#include <linux/kref.h>
+#include <linux/mutex.h>
 #include <linux/spinlock.h>
 #include <linux/static_key.h>
 #include <linux/types.h>
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Andy Shevchenko

The arm_vgic.h does not require all the stuff the kernel.h provides. Replace kernel.h inclusion with the list of what is really being used.

Applied to next, thanks!

[1/1] KVM: arm64: vgic: Replace kernel.h with the necessary inclusions

      commit: 6c9eeb5f4a9bb2b11a40fd0f15efde7bd33ee908

Cheers,

	M.
Signature · 1 line
Without deviation from the norm, progress is not possible.