diff options
author | Steffen Persvold <sp@numascale.com> | 2012-03-15 10:20:29 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-03-15 10:43:16 -0400 |
commit | cebd5fa4d3046d5b43ce1836a0120612822a7fb0 (patch) | |
tree | b12876009e2b20a89e1393c1315a7ba0e7bb3cd7 | |
parent | 474d567db3d459d08ed0e683f4ace9b00ac2aa4b (diff) |
iommu/amd: Fix section warning for prealloc_protection_domains
Fix the following section warning in drivers/iommu/amd_iommu.c :
WARNING: vmlinux.o(.text+0x526e77): Section mismatch in reference from the function prealloc_protection_domains() to the function .init.text:alloc_passthrough_domain()
The function prealloc_protection_domains() references
the function __init alloc_passthrough_domain().
This is often because prealloc_protection_domains lacks a __init
annotation or the annotation of alloc_passthrough_domain is wrong.
Cc: stable@vger.kernel.org
Signed-off-by: Steffen Persvold <sp@numascale.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
-rw-r--r-- | drivers/iommu/amd_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index f75e0608be5b..ae2ec929e52f 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -2804,7 +2804,7 @@ static int amd_iommu_dma_supported(struct device *dev, u64 mask) | |||
2804 | * we don't need to preallocate the protection domains anymore. | 2804 | * we don't need to preallocate the protection domains anymore. |
2805 | * For now we have to. | 2805 | * For now we have to. |
2806 | */ | 2806 | */ |
2807 | static void prealloc_protection_domains(void) | 2807 | static void __init prealloc_protection_domains(void) |
2808 | { | 2808 | { |
2809 | struct iommu_dev_data *dev_data; | 2809 | struct iommu_dev_data *dev_data; |
2810 | struct dma_ops_domain *dma_dom; | 2810 | struct dma_ops_domain *dma_dom; |