]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/amd: Fix section mismatch warning
authorJoerg Roedel <jroedel@suse.de>
Fri, 18 Aug 2017 22:35:40 +0000 (00:35 +0200)
committerJoerg Roedel <jroedel@suse.de>
Sat, 19 Aug 2017 08:34:31 +0000 (10:34 +0200)
commit2479c631d16c53b01f897fe6a4666c04f71075fb
treef8852aeeaaa3c04624ca30aee9c60c6f7681db5a
parentae162efbf2870c326e06b4f905423fb888f9cd2a
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>
drivers/iommu/amd_iommu_init.c