From patchwork Fri Aug 25 14:21:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9922131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6DEDE602BD for ; Fri, 25 Aug 2017 14:25:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6042C28382 for ; Fri, 25 Aug 2017 14:25:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E854283B0; Fri, 25 Aug 2017 14:25:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0532C283C7 for ; Fri, 25 Aug 2017 14:25:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933221AbdHYOXf (ORCPT ); Fri, 25 Aug 2017 10:23:35 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34488 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbdHYOXd (ORCPT ); Fri, 25 Aug 2017 10:23:33 -0400 Received: by mail-pg0-f65.google.com with SMTP id 63so4119012pgc.1; Fri, 25 Aug 2017 07:23:32 -0700 (PDT) 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) Received: from gmail.com ([117.196.97.99]) by smtp.gmail.com with ESMTPSA id c26sm12750040pfl.1.2017.08.25.07.23.15 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Aug 2017 07:23:31 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 25 Aug 2017 19:53:09 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, marcel@holtmann.org, gustavo@padovan.org, johan.hedberg@gmail.com, davem@davemloft.net, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, stephen@networkplumber.org, alex.aring@gmail.com, stefan@osg.samsung.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, santosh.shilimkar@oracle.com, trond.myklebust@primarydata.com, anna.schumaker@netapp.com, bfields@fieldses.org, jlayton@poochiereds.net, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux-foundation.org, linux-wpan@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-nfs@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 5/7] RDS: make rhashtable_params const Date: Fri, 25 Aug 2017 19:51:45 +0530 Message-Id: <1503670907-23221-6-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503670907-23221-1-git-send-email-bhumirks@gmail.com> References: <1503670907-23221-1-git-send-email-bhumirks@gmail.com> Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Santosh Shilimkar --- 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),