Searched hist:b65412c25fa600d8a4085e820bdfadb9d9bab6b9 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iommu/amd/ |
H A D | init.c | diff b65412c25fa600d8a4085e820bdfadb9d9bab6b9 Tue Jun 08 07:28:43 CDT 2021 Joerg Roedel <jroedel@suse.de> 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
|