]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.14/0099-iommu-amd-Fix-section-warning-for-prealloc_protectio.patch
linux-ti335x-psp 3.2: update to 3.2.14
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.14 / 0099-iommu-amd-Fix-section-warning-for-prealloc_protectio.patch
1 From fd9b78dce7a6acf7a69902d69c82980634cd7136 Mon Sep 17 00:00:00 2001
2 From: Steffen Persvold <sp@numascale.com>
3 Date: Thu, 15 Mar 2012 15:20:29 +0100
4 Subject: [PATCH 099/147] iommu/amd: Fix section warning for
5  prealloc_protection_domains
7 commit cebd5fa4d3046d5b43ce1836a0120612822a7fb0 upstream.
9 Fix the following section warning in drivers/iommu/amd_iommu.c :
11 WARNING: vmlinux.o(.text+0x526e77): Section mismatch in reference from the function prealloc_protection_domains() to the function .init.text:alloc_passthrough_domain()
12 The function prealloc_protection_domains() references
13 the function __init alloc_passthrough_domain().
14 This is often because prealloc_protection_domains lacks a __init
15 annotation or the annotation of alloc_passthrough_domain is wrong.
17 Signed-off-by: Steffen Persvold <sp@numascale.com>
18 Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20 ---
21  drivers/iommu/amd_iommu.c |    2 +-
22  1 file changed, 1 insertion(+), 1 deletion(-)
24 diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
25 index e0b3e33..966a6e7 100644
26 --- a/drivers/iommu/amd_iommu.c
27 +++ b/drivers/iommu/amd_iommu.c
28 @@ -2432,7 +2432,7 @@ static int amd_iommu_dma_supported(struct device *dev, u64 mask)
29   * we don't need to preallocate the protection domains anymore.
30   * For now we have to.
31   */
32 -static void prealloc_protection_domains(void)
33 +static void __init prealloc_protection_domains(void)
34  {
35         struct pci_dev *dev = NULL;
36         struct dma_ops_domain *dma_dom;
37 -- 
38 1.7.9.4