RDS: make rhashtable_params const
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 25 Aug 2017 14:21:45 +0000 (19:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 18:30:02 +0000 (11:30 -0700)
Make this const as it is either used during a copy operation or passed
to a const argument of the function rhltable_init

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/bind.c

index 3a915bedb76c52995fdf5c09fa747f3a236a169b..75d43dc8e96b4655becce35dcaa5dd570abf4a41 100644 (file)
@@ -40,7 +40,7 @@
 
 static struct rhashtable bind_hash_table;
 
-static struct rhashtable_params ht_parms = {
+static const struct rhashtable_params ht_parms = {
        .nelem_hint = 768,
        .key_len = sizeof(u64),
        .key_offset = offsetof(struct rds_sock, rs_bound_key),