linux-stable/drivers/iommu/amd
Joerg Roedel b65412c25f iommu/amd: Fix section mismatch warning for detect_ivrs()
A recent commit introduced this section mismatch warning:

	WARNING: modpost: vmlinux.o(.text.unlikely+0x22a1f): Section mismatch in reference from the function detect_ivrs() to the variable .init.data:amd_iommu_force_enable

The reason is that detect_ivrs() is not marked __init while it should
be, because it is only called from another __init function. Mark
detect_ivrs() __init to get rid of the warning.

Fixes: b1e650db2c ("iommu/amd: Add amd_iommu=force_enable option")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20210608122843.8413-1-joro@8bytes.org
2021-06-08 14:29:33 +02:00
..
amd_iommu.h iommu/amd: Move a few prototypes to include/linux/amd-iommu.h 2021-04-07 11:14:55 +02:00
amd_iommu_types.h iommu/amd: Remove the unused device errata code 2021-04-07 11:14:43 +02:00
debugfs.c
init.c iommu/amd: Fix section mismatch warning for detect_ivrs() 2021-06-08 14:29:33 +02:00
io_pgtable.c iommu/amd: Fix sleeping in atomic in increase_address_space() 2021-03-04 13:15:56 +01:00
iommu.c iommu/amd: Fix wrong parentheses on page-specific invalidations 2021-05-18 11:21:28 +02:00
iommu_v2.c iommu/amd: Use DEFINE_SPINLOCK() for spinlock 2021-01-27 12:41:11 +01:00
Kconfig iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
Makefile iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
quirks.c