Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751698AbdH3LuY (ORCPT ); Wed, 30 Aug 2017 07:50:24 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:32934 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbdH3LuV (ORCPT ); Wed, 30 Aug 2017 07:50:21 -0400 From: Arvind Yadav To: davem@davemloft.net, santosh.shilimkar@oracle.com Cc: linux-kernel@vger.kernel.org, rds-devel@oss.oracle.com, linux-rdma@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] RDS: constify rhashtable_params Date: Wed, 30 Aug 2017 17:19:51 +0530 Message-Id: <3cdaecc7c8080b0f2172d8788b96303528957b08.1504093495.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 721 Lines: 25 rhashtable_params are not supposed to change at runtime. All Functions rhashtable_* working with const rhashtable_params provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- net/rds/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rds/bind.c b/net/rds/bind.c index 3a915be..75d43dc 100644 --- a/net/rds/bind.c +++ b/net/rds/bind.c @@ -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), -- 1.9.1