summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/iommu_table.h
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2012-09-03 01:31:46 +0400
committerIngo Molnar <mingo@kernel.org>2012-09-05 12:52:26 +0400
commitae13b7b4e041eccf34fa4dd58581fe1441375578 (patch)
treed2157adf3560bdb559f16839675d3c03fec536ed /arch/x86/include/asm/iommu_table.h
parent2b11afd1ab502d959ae8d6d5812923151b5bc505 (diff)
downloadlinux-ae13b7b4e041eccf34fa4dd58581fe1441375578.tar.xz
x86/iommu: Use NULL instead of plain 0 for __IOMMU_INIT
IOMMU_INIT_POST and IOMMU_INIT_POST_FINISH pass the plain value 0 instead of NULL to __IOMMU_INIT. Fix this and make sparse happy by doing so. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: Joerg Roedel <joerg.roedel@amd.com> Link: http://lkml.kernel.org/r/1346621506-30857-8-git-send-email-minipli@googlemail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/iommu_table.h')
-rw-r--r--arch/x86/include/asm/iommu_table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
index bbf8fb2e3920..f42a04735a0a 100644
--- a/arch/x86/include/asm/iommu_table.h
+++ b/arch/x86/include/asm/iommu_table.h
@@ -63,10 +63,10 @@ struct iommu_table_entry {
* to stop detecting the other IOMMUs after yours has been detected.
*/
#define IOMMU_INIT_POST(_detect) \
- __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, 0, 0, 0)
+ __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, NULL, NULL, 0)
#define IOMMU_INIT_POST_FINISH(detect) \
- __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, 0, 0, 1)
+ __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, NULL, NULL, 1)
/*
* A more sophisticated version of IOMMU_INIT. This variant requires: