diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-28 17:28:40 +0300 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-12-21 17:41:01 +0300 |
commit | 86fc2136736d2767bf797e6d2b1f80b49f52953c (patch) | |
tree | 57e1013e9dd645d0642273723cc523f92a55c4a7 | |
parent | 2dd887e32175b624375570a0361083eb2cd64a07 (diff) | |
download | linux-86fc2136736d2767bf797e6d2b1f80b49f52953c.tar.xz |
xen/grant-table: constify gnttab_ops structure
The gnttab_ops structure is never modified, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
-rw-r--r-- | drivers/xen/grant-table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index c49f79ed58c5..effbaf91791f 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c @@ -128,7 +128,7 @@ struct unmap_refs_callback_data { int result; }; -static struct gnttab_ops *gnttab_interface; +static const struct gnttab_ops *gnttab_interface; static int grant_table_version; static int grefs_per_grant_frame; @@ -1013,7 +1013,7 @@ static int gnttab_map(unsigned int start_idx, unsigned int end_idx) return rc; } -static struct gnttab_ops gnttab_v1_ops = { +static const struct gnttab_ops gnttab_v1_ops = { .map_frames = gnttab_map_frames_v1, .unmap_frames = gnttab_unmap_frames_v1, .update_entry = gnttab_update_entry_v1, |