diff mbox

kvm/x86: remove unnecessary header file inclusion

Message ID 1464672074-8864-1-git-send-email-kai.huang@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kai Huang May 31, 2016, 5:21 a.m. UTC
arch/x86/kvm/iommu.c includes <linux/intel-iommu.h> and <linux/dmar.h>, which
both are unnecessary, in fact incorrect to be here as they are intel specific.

Building kvm on x86 passed after removing above inclusion.

Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
---
 arch/x86/kvm/iommu.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Radim Krčmář May 31, 2016, 1:49 p.m. UTC | #1
2016-05-31 13:21+0800, Kai Huang:
> arch/x86/kvm/iommu.c includes <linux/intel-iommu.h> and <linux/dmar.h>, which
> both are unnecessary, in fact incorrect to be here as they are intel specific.
> 
> Building kvm on x86 passed after removing above inclusion.
> 
> Signed-off-by: Kai Huang <kai.huang@linux.intel.com>
> ---

Applied, thanks.

>  arch/x86/kvm/iommu.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/arch/x86/kvm/iommu.c b/arch/x86/kvm/iommu.c
> index a22a488..15d8fff 100644
> --- a/arch/x86/kvm/iommu.c
> +++ b/arch/x86/kvm/iommu.c
> @@ -28,9 +28,7 @@
>  #include <linux/module.h>
>  #include <linux/pci.h>
>  #include <linux/stat.h>
> -#include <linux/dmar.h>
>  #include <linux/iommu.h>
> -#include <linux/intel-iommu.h>
>  #include "assigned-dev.h"
>  
>  static bool allow_unsafe_assigned_interrupts;
> -- 
> 2.7.4
> 
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/x86/kvm/iommu.c b/arch/x86/kvm/iommu.c
index a22a488..15d8fff 100644
--- a/arch/x86/kvm/iommu.c
+++ b/arch/x86/kvm/iommu.c
@@ -28,9 +28,7 @@ 
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/stat.h>
-#include <linux/dmar.h>
 #include <linux/iommu.h>
-#include <linux/intel-iommu.h>
 #include "assigned-dev.h"
 
 static bool allow_unsafe_assigned_interrupts;