include/linux/amd-iommu.h: Move to arch/x86/include/asm
Subsystems (6)
PATCH 1/1 include/linux/amd-iommu.h: Move to arch/x86/include/asm
From: Chen Gang <[email protected]>
It is architecture specific mechanism header, not generic header, so move it to arch/x86/include/asm.
ALso change all related contents for it.
---
MAINTAINERS | 2 +-
{include/linux => arch/x86/include/asm}/amd-iommu.h | 0
drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
drivers/gpu/drm/amd/amdkfd/kfd_process.c | 2 +-
drivers/iommu/amd_iommu.c | 2 +-
drivers/iommu/amd_iommu_init.c | 2 +-
drivers/iommu/amd_iommu_v2.c | 2 +-
7 files changed, 6 insertions(+), 6 deletions(-)
rename {include/linux => arch/x86/include/asm}/amd-iommu.h (100%)MAINTAINERS +1 -1
@@ -656,7 +656,7 @@ L: [email protected] T: git git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git S: Maintained F: drivers/iommu/amd_iommu*.[ch] -F: include/linux/amd-iommu.h +F: arch/x86/include/asm/amd-iommu.h AMD KFD M: Oded Gabbay <[email protected]>
arch/x86/include/asm/amd-iommu.h renamed from include/linux/amd-iommu.h +0 -0
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
@@ -20,7 +20,7 @@* OTHER DEALINGS IN THE SOFTWARE. */ -#include <linux/amd-iommu.h> +#include <asm/amd-iommu.h> #include <linux/bsearch.h> #include <linux/pci.h> #include <linux/slab.h>
drivers/gpu/drm/amd/amdkfd/kfd_process.c +1 -1
@@ -24,7 +24,7 @@#include <linux/log2.h> #include <linux/sched.h> #include <linux/slab.h> -#include <linux/amd-iommu.h> +#include <asm/amd-iommu.h> #include <linux/notifier.h> #include <linux/compat.h>
drivers/iommu/amd_iommu.c +1 -1
@@ -28,7 +28,7 @@#include <linux/iommu-helper.h> #include <linux/iommu.h> #include <linux/delay.h> -#include <linux/amd-iommu.h> +#include <asm/amd-iommu.h> #include <linux/notifier.h> #include <linux/export.h> #include <linux/irq.h>
drivers/iommu/amd_iommu_init.c +1 -1
@@ -24,7 +24,7 @@#include <linux/syscore_ops.h> #include <linux/interrupt.h> #include <linux/msi.h> -#include <linux/amd-iommu.h> +#include <asm/amd-iommu.h> #include <linux/export.h> #include <linux/iommu.h> #include <asm/pci-direct.h>
drivers/iommu/amd_iommu_v2.c +1 -1
@@ -17,7 +17,7 @@*/ #include <linux/mmu_notifier.h> -#include <linux/amd-iommu.h> +#include <asm/amd-iommu.h> #include <linux/mm_types.h> #include <linux/profile.h> #include <linux/module.h>
Signature · 1 line
1.9.3
Joerg Roedel
maintainerQuoted 4 lines · On Sat, Dec 26, 2015 at 09:26:32PM +0800, [email protected] wrote:
From: Chen Gang <[email protected]>
It is architecture specific mechanism header, not generic header, so move it to
arch/x86/include/asm.
There might be future non-x86 hardware which also has an amd iommu, so the header file should stay where it is for now.
Joerg
Quoted 8 lines · Joerg Roedel
Quoted 3 lines · On Sat, Dec 26, 2015 at 09:26:32PM +0800, [email protected] wrote:
It is architecture specific mechanism header, not generic header, so move it to
arch/x86/include/asm.There might be future non-x86 hardware which also has an amd iommu, so the header file should stay where it is for now.
For me, amd-iommu.h is architecture specific, for this kind of headers, if it is used by most of archs, it will be in "include/asm-generic". If it is used by several archs, it will be in "arch/*/include/asm/".
So for me, at present, it is only used by x86, so is move to "arch/x86/ include/asm/"; if another archs want it, they can copy one. If quite a few archs (e.g. > 3 archs) need it, move it to "include/asm-generic".
Thanks.
Signature · 3 lines
Chen Gang (陈刚) Open, share, and attitude like air, water, and life which God blessed