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

Commit 46e741f4 authored by Julia Lawall's avatar Julia Lawall Committed by Doug Ledford
Browse files

IB/core: 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>
Reviewed-by: default avatarHaggai Eran <haggaie@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 2392a4cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,7 @@ static void ib_umem_notifier_invalidate_range_end(struct mmu_notifier *mn,
	ib_ucontext_notifier_end_account(context);
}

static struct mmu_notifier_ops ib_umem_notifiers = {
static const struct mmu_notifier_ops ib_umem_notifiers = {
	.release                    = ib_umem_notifier_release,
	.invalidate_page            = ib_umem_notifier_invalidate_page,
	.invalidate_range_start     = ib_umem_notifier_invalidate_range_start,