summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp/iser/iscsi_iser.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-28 18:52:04 +0300
committerDoug Ledford <dledford@redhat.com>2015-12-24 08:17:33 +0300
commit2392a4cdcb8dfd9d04ab0192919a8c7e3f9e7b3e (patch)
tree868dad885e9f16b81d95bf6dba30df1be53cc606 /drivers/infiniband/ulp/iser/iscsi_iser.h
parentc419874c443a21ab75708bf0ddb74f2b0cf3c545 (diff)
downloadlinux-2392a4cdcb8dfd9d04ab0192919a8c7e3f9e7b3e.tar.xz
IB/iser: constify iser_reg_ops structure
The iser_reg_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iscsi_iser.h')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h
index d3f5255ef034..aeaa75867945 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.h
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.h
@@ -410,7 +410,7 @@ struct iser_device {
int refcount;
int comps_used;
struct iser_comp *comps;
- struct iser_reg_ops *reg_ops;
+ const struct iser_reg_ops *reg_ops;
};
#define ISER_CHECK_GUARD 0xc0