Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 759ce23b authored by Julia Lawall's avatar Julia Lawall Committed by Joerg Roedel
Browse files

iommu/amd: Constify mmu_notifier_ops structures



This mmu_notifier_ops structure is never modified, so declare it as
const, like the other mmu_notifier_ops structures.

Done with the help of Coccinelle.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 492e7459
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -432,7 +432,7 @@ static void mn_release(struct mmu_notifier *mn, struct mm_struct *mm)
	unbind_pasid(pasid_state);
	unbind_pasid(pasid_state);
}
}


static struct mmu_notifier_ops iommu_mn = {
static const struct mmu_notifier_ops iommu_mn = {
	.release		= mn_release,
	.release		= mn_release,
	.clear_flush_young      = mn_clear_flush_young,
	.clear_flush_young      = mn_clear_flush_young,
	.invalidate_page        = mn_invalidate_page,
	.invalidate_page        = mn_invalidate_page,