Skip to content

Commit 45967ff

Browse files
mebeimjoergroedel
authored andcommitted
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 <marco@mebeim.net> Link: https://lore.kernel.org/r/20220210023141.9208-1-marco@mebeim.net Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20220301020159.633356-11-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 2852631 commit 45967ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/intel/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3364,7 +3364,7 @@ static void __init init_iommu_pm_ops(void)
33643364
static inline void init_iommu_pm_ops(void) {}
33653365
#endif /* CONFIG_PM */
33663366

3367-
static int rmrr_sanity_check(struct acpi_dmar_reserved_memory *rmrr)
3367+
static int __init rmrr_sanity_check(struct acpi_dmar_reserved_memory *rmrr)
33683368
{
33693369
if (!IS_ALIGNED(rmrr->base_address, PAGE_SIZE) ||
33703370
!IS_ALIGNED(rmrr->end_address + 1, PAGE_SIZE) ||

0 commit comments

Comments
 (0)