From: Julia Lawall Date: Sun, 29 Nov 2015 22:02:49 +0000 (+0100) Subject: xen/gntdev: constify mmu_notifier_ops structures X-Git-Tag: v4.1.12-92~158^2~11^2~32 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d53358baa7a5bc3cd310de7a3d32ca163387d43d;p=users%2Fjedix%2Flinux-maple.git xen/gntdev: 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: Julia Lawall Signed-off-by: David Vrabel (cherry picked from commit b9c0a92a9aa953e5a98f2af2098c747d4358c7bb) Signed-off-by: Daniel Kiper --- diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index 3dcc16e6d0bf8..e3e6940f29d12 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c @@ -518,7 +518,7 @@ static void mn_release(struct mmu_notifier *mn, mutex_unlock(&priv->lock); } -static struct mmu_notifier_ops gntdev_mmu_ops = { +static const struct mmu_notifier_ops gntdev_mmu_ops = { .release = mn_release, .invalidate_page = mn_invl_page, .invalidate_range_start = mn_invl_range_start,