summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2021-06-08 14:28:43 +0200
committerJoerg Roedel <jroedel@suse.de>2021-06-08 14:29:33 +0200
commitb65412c25fa600d8a4085e820bdfadb9d9bab6b9 (patch)
treefcd00987367a25fcb55ffe2130eec5a0f9c55ef6 /drivers/iommu/amd
parentb1e650db2cc4acca6e7c9974f6a2ca232261173a (diff)
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: b1e650db2cc4 ("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
Diffstat (limited to 'drivers/iommu/amd')
-rw-r--r--drivers/iommu/amd/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c
index 00ee9e3caedc..72f2384fd08c 100644
--- a/drivers/iommu/amd/init.c
+++ b/drivers/iommu/amd/init.c
@@ -2818,7 +2818,7 @@ out:
return ret;
}
-static bool detect_ivrs(void)
+static bool __init detect_ivrs(void)
{
struct acpi_table_header *ivrs_base;
acpi_status status;