summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/i40iw/i40iw_vf.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-05-01 15:22:21 +0300
committerDoug Ledford <dledford@redhat.com>2016-05-14 02:40:26 +0300
commitfb997816fdf3475fd9bd9a76b6b77aba03864835 (patch)
tree34452e2a2d62de14fcd173b50165963c9268fe1e /drivers/infiniband/hw/i40iw/i40iw_vf.h
parent321aebb880d2bfdf9cff503f57207e930aee6b1d (diff)
downloadlinux-fb997816fdf3475fd9bd9a76b6b77aba03864835.tar.xz
i40iw: constify i40iw_vf_cqp_ops structure
The i40iw_vf_cqp_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> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_vf.h')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_vf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_vf.h b/drivers/infiniband/hw/i40iw/i40iw_vf.h
index f649f3a62e13..4359559ece9c 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_vf.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_vf.h
@@ -57,6 +57,6 @@ enum i40iw_status_code i40iw_manage_vf_pble_bp(struct i40iw_sc_cqp *cqp,
u64 scratch,
bool post_sq);
-extern struct i40iw_vf_cqp_ops iw_vf_cqp_ops;
+extern const struct i40iw_vf_cqp_ops iw_vf_cqp_ops;
#endif