summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd_iommu_init.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2017-08-19 01:35:40 +0300
committerJoerg Roedel <jroedel@suse.de>2017-08-19 11:34:31 +0300
commit2479c631d16c53b01f897fe6a4666c04f71075fb (patch)
treef8852aeeaaa3c04624ca30aee9c60c6f7681db5a /drivers/iommu/amd_iommu_init.c
parentae162efbf2870c326e06b4f905423fb888f9cd2a (diff)
downloadlinux-2479c631d16c53b01f897fe6a4666c04f71075fb.tar.xz
iommu/amd: Fix section mismatch warning
The variable amd_iommu_pre_enabled is used in non-init code-paths, so remove the __initdata annotation. Reported-by: kbuild test robot <fengguang.wu@intel.com> Fixes: 3ac3e5ee5ed56 ('iommu/amd: Copy old trans table from old kernel') Acked-by: Baoquan He <bhe@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_init.c')
-rw-r--r--drivers/iommu/amd_iommu_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index f2023cd08ef7..ff8887ac5555 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -264,7 +264,7 @@ static int amd_iommu_enable_interrupts(void);
static int __init iommu_go_to_state(enum iommu_init_state state);
static void init_device_table_dma(void);
-static bool __initdata amd_iommu_pre_enabled = true;
+static bool amd_iommu_pre_enabled = true;
bool translation_pre_enabled(struct amd_iommu *iommu)
{