提交 2479c631 编写于 作者: J Joerg Roedel

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: Nkbuild test robot <fengguang.wu@intel.com>
Fixes: 3ac3e5ee ('iommu/amd: Copy old trans table from old kernel')
Acked-by: NBaoquan He <bhe@redhat.com>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
上级 ae162efb
...@@ -264,7 +264,7 @@ static int amd_iommu_enable_interrupts(void); ...@@ -264,7 +264,7 @@ static int amd_iommu_enable_interrupts(void);
static int __init iommu_go_to_state(enum iommu_init_state state); static int __init iommu_go_to_state(enum iommu_init_state state);
static void init_device_table_dma(void); 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) bool translation_pre_enabled(struct amd_iommu *iommu)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册