summaryrefslogtreecommitdiffstats
path: root/drivers/xen/gntdev.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-29 23:02:49 +0100
committerDavid Vrabel <david.vrabel@citrix.com>2015-12-21 14:41:01 +0000
commitb9c0a92a9aa953e5a98f2af2098c747d4358c7bb (patch)
tree75d9edcf8054f854f618b9ab8551ff0f7c249837 /drivers/xen/gntdev.c
parent86fc2136736d2767bf797e6d2b1f80b49f52953c (diff)
downloadlinux-stable-b9c0a92a9aa953e5a98f2af2098c747d4358c7bb.tar.gz
linux-stable-b9c0a92a9aa953e5a98f2af2098c747d4358c7bb.tar.bz2
linux-stable-b9c0a92a9aa953e5a98f2af2098c747d4358c7bb.zip
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 <Julia.Lawall@lip6.fr> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen/gntdev.c')
-rw-r--r--drivers/xen/gntdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c
index 1be5dd048622..cbd3836ec8fa 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,