Skip to content

Commit

Permalink
iommu/amd: Fix section mismatch warning
Browse files Browse the repository at this point in the history
The variable amd_iommu_pre_enabled is used in non-init
code-paths, so remove the __initdata annotation.

Reported-by: kbuild test robot <[email protected]>
Fixes: 3ac3e5e ('iommu/amd: Copy old trans table from old kernel')
Acked-by: Baoquan He <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
joergroedel committed Aug 19, 2017
1 parent ae162ef commit 2479c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2479c63

Please sign in to comment.