aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_cm.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-28 15:00:37 +0100
committerDoug Ledford <dledford@redhat.com>2015-12-24 00:17:32 -0500
commitc419874c443a21ab75708bf0ddb74f2b0cf3c545 (patch)
treed01374f5cbf9a40356c99b2c0c17ade0f40ec129 /drivers/infiniband/hw/nes/nes_cm.h
parentIB/mlx5: report tx/rx checksum cap in query results (diff)
downloadlinux-dev-c419874c443a21ab75708bf0ddb74f2b0cf3c545.tar.xz
linux-dev-c419874c443a21ab75708bf0ddb74f2b0cf3c545.zip
RDMA/nes: constify nes_cm_ops structure
The nes_cm_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: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_cm.h')
-rw-r--r--drivers/infiniband/hw/nes/nes_cm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.h b/drivers/infiniband/hw/nes/nes_cm.h
index 32a6420c2940..147c2c884227 100644
--- a/drivers/infiniband/hw/nes/nes_cm.h
+++ b/drivers/infiniband/hw/nes/nes_cm.h
@@ -423,7 +423,7 @@ struct nes_cm_core {
struct timer_list tcp_timer;
- struct nes_cm_ops *api;
+ const struct nes_cm_ops *api;
int (*post_event)(struct nes_cm_event *event);
atomic_t events_posted;