Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1720108

[PATCH 5/7] RDS: make rhashtable_params const

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Bhumika Goyal <bhumirks@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 5/7] RDS: make rhashtable_params const
Date Fri, 25 Aug 2017 16:30:02 +0200
Message-ID <uinMu-5ah-21@gated-at.bofh.it> (permalink)
References <uinMt-5ah-1@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bsmfvN4spIsqpQJf7CGI5wExBPx0tH9c+Q6WXMdU9bE=; b=r2rVlOFr3fPV7r5CEik7hi/fQfIcHD1wMexxxmTmYqXVIi1kRiMyFv7ksTmuTFNOld P8hJAIx46PONb9lN505qRsuVxzfY2Xx3NMVqW9VcZ1hUwhXGvOMZ4HYAhH3BXOfaYCwE NSYgORbOV9n/Vr+609PKtfR2QrRiZy0JVVhZfv9+H5zcDFgxpDMGcgD6wrwKFV8Lwm75 NcOHEzHQxQCli532LMDL132avUIOTr8uGa411do8xeOIQb4JkZ6m2OBgfPtqA3bmHz9W HgRuYxvqxFAjS3aKP7zPOdlqZ6HoR2lX+MpcpUcCvRZxBFrzWdPaMAKeaez4WaahH4n7 l2Yg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bsmfvN4spIsqpQJf7CGI5wExBPx0tH9c+Q6WXMdU9bE=; b=fGKyfxB/HkB1HWnzb8NAOMcAfgvwAHOEFnt++aeOeA2OTsqoPpuXbZz6jg6LIRuT8M M35ZjqYbU/piRfLduxB2QfeCIt58ESCli3YKd3Cnytf3D+zjIbasaUFTkWbRhTqHY5uB Th+3uFU4LzjfpZDpq9Op1XAF09NVQPomz6P4/kJFmLubaSeHKEfQu4JTHhQwKaxrgv8i Uiavo8OwVEuItYhGyIiJCf8NS+SDfTe0VtVWotgz+RRABCbIRPGuneZ3SXF51AesbZec HDvUD5hBwQpdc4zjw7il7W23xcwrAlR4Fhc9g8N0d6iRXTGyX8o+bwYAIGJxC/t0hh56 Y08g==
X-Gm-Message-State AHYfb5jeRa9ffCTTFCVnJus8x/cp5hxhwU3a2ZIWx6ecgWVh/C04gmI5 28JtMIHIMuA6LQ==
X-Received by 10.98.156.80 with SMTP id f77mr10083352pfe.213.1503671012204; Fri, 25 Aug 2017 07:23:32 -0700 (PDT)
X-Mailer git-send-email 1.9.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 23
Organization linux.* mail to news gateway
X-Original-Cc Bhumika Goyal <bhumirks@gmail.com>
X-Original-Date Fri, 25 Aug 2017 19:51:45 +0530
X-Original-Message-ID <1503670907-23221-6-git-send-email-bhumirks@gmail.com>
X-Original-References <1503670907-23221-1-git-send-email-bhumirks@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1720108

Show key headers only | View raw


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>
---
 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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/7] net: make some structures const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-25 16:30 +0200
  [PATCH 2/7] bridge: make ebt_table const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-25 16:30 +0200
    Re: [PATCH 2/7] bridge: make ebt_table const David Miller <davem@davemloft.net> - 2017-08-28 20:40 +0200
  [PATCH 7/7] SUNRPC: make kvec const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-25 16:30 +0200
    Re: [PATCH 7/7] SUNRPC: make kvec const Jeff Layton <jlayton@redhat.com> - 2017-08-25 16:50 +0200
  [PATCH 5/7] RDS: make rhashtable_params const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-25 16:30 +0200
    Re: [PATCH 5/7] RDS: make rhashtable_params const Santosh Shilimkar <santosh.shilimkar@oracle.com> - 2017-08-25 17:40 +0200
    Re: [PATCH 5/7] RDS: make rhashtable_params const David Miller <davem@davemloft.net> - 2017-08-28 20:40 +0200
  [PATCH 6/7] netfilter: nat: make rhashtable_params const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-25 16:30 +0200
  [PATCH 1/7] Bluetooth: 6lowpan: make header_ops const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-25 16:30 +0200
  [PATCH 3/7] ieee802154: 6lowpan: make header_ops const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-25 16:30 +0200
    Re: [PATCH 3/7] ieee802154: 6lowpan: make header_ops const Stefan Schmidt <stefan@osg.samsung.com> - 2017-08-25 16:40 +0200
    Re: [PATCH 3/7] ieee802154: 6lowpan: make header_ops const Marcel Holtmann <marcel@holtmann.org> - 2017-08-25 18:20 +0200
  [PATCH 4/7] ipv4: make net_protocol const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-25 16:30 +0200
    Re: [PATCH 4/7] ipv4: make net_protocol const David Miller <davem@davemloft.net> - 2017-08-28 20:40 +0200

csiph-web