Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Mathias Krause and committed by
Ingo Molnar
ae13b7b4 2b11afd1

+2 -2
+2 -2
arch/x86/include/asm/iommu_table.h
··· 63 63 * to stop detecting the other IOMMUs after yours has been detected. 64 64 */ 65 65 #define IOMMU_INIT_POST(_detect) \ 66 - __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, 0, 0, 0) 66 + __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, NULL, NULL, 0) 67 67 68 68 #define IOMMU_INIT_POST_FINISH(detect) \ 69 - __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, 0, 0, 1) 69 + __IOMMU_INIT(_detect, pci_swiotlb_detect_4gb, NULL, NULL, 1) 70 70 71 71 /* 72 72 * A more sophisticated version of IOMMU_INIT. This variant requires: