iommu/vt-d: Add missing "__init" for rmrr_sanity_check()
Subsystems (2)
PATCH 1/1 iommu/vt-d: Add missing "__init" for rmrr_sanity_check()
rmrr_sanity_check() calls arch_rmrr_sanity_check(), which is marked as "__init". Add the annotation for rmrr_sanity_check() too. This function is currently only called from dmar_parse_one_rmrr() which is also "__init".
Signed-off-by Marco Bonelli <[email protected]>
--- drivers/iommu/intel/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/intel/iommu.c +1 -1
@@ -3691,7 +3691,7 @@ static void __init init_iommu_pm_ops(void)static inline void init_iommu_pm_ops (void ) {}#endif /* CONFIG_PM */ -static int rmrr_sanity_check (struct acpi_dmar_reserved_memory *rmrr) +static int __init rmrr_sanity_check (struct acpi_dmar_reserved_memory *rmrr) { if (!IS_ALIGNED(rmrr->base_address, PAGE_SIZE) || !IS_ALIGNED(rmrr->end_address + 1, PAGE_SIZE) ||
Signature · 1 line
2.30.2