From patchwork Fri Aug 25 14:21:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9922123 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 DC9E8608A6 for ; Fri, 25 Aug 2017 14:23:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC0062821F for ; Fri, 25 Aug 2017 14:23:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9EF628384; Fri, 25 Aug 2017 14:23:59 +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 7763F283C3 for ; Fri, 25 Aug 2017 14:23:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933249AbdHYOXu (ORCPT ); Fri, 25 Aug 2017 10:23:50 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37719 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbdHYOXq (ORCPT ); Fri, 25 Aug 2017 10:23:46 -0400 Received: by mail-pg0-f65.google.com with SMTP id a7so4089042pgn.4; Fri, 25 Aug 2017 07:23:46 -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=Zs2SnW09Z4ozLDiJHkE06CKMRyQ28EQTa29CVJIcd5Q=; b=SMv7OkfKIx3SxDzbcuz/yx+dParNM78l8uaQRj+ic/ljRkIhqvoqK7DAPBa+68ACGa 75GxiqcgD2FW3mvhJ0s6LQrxRv1oIFMpjQ/OkGYE41D7c9kmC5ZMJhOYDOyshpyUe8bi jFhqtqiQWsuf0M8ixbvT+nZ3sEsDnjsgAhXVFf9r9URtqVjJ6T2UrSyirKDbwAgTT7Wl PZzft+iobWMR8ebOrcfOQF5BTkcoTL6umk0UfxS4dl4uKWZJneSWW7Qdl4XLSTUIrmVB /sxThRwk/RXlaChGV8BGZ17Km3/KpTli1Tbj8kKL2mEyQ3dyWTkw/Xqb1MpNOFgb5iAp Y/dA== 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=Zs2SnW09Z4ozLDiJHkE06CKMRyQ28EQTa29CVJIcd5Q=; b=SvBTWrZgpEmL73ob7sraUaH6aN126aR+jxAndr3CQCGGsz/8T4uukEfn+UHv0drdCN JS23YKdubMRVu9PHCrjdgr9Z14OmwzLhOkrzbr/VHP4eb+RUl+om7mP4ednGkAacavt5 JEpRR/Q1L6uC5P2HqOMCSLAcUwo0judWuIOC6XmsNTHlLxEF3wRXQ0XuxhSKPzuGYsjf iumAAzJEJTRPYK2PElZ5zrB/6H3Eqp0xJPGKvXJhMvtK7a5fUi+4g5+KQCqqwaP1n9Pe 9YWLysDCqIW18SzaxLD7Q/UEcvX6EEz3GacWHpjt0bqVwxu6iID1rxRx8bGb6THKlPyV orpA== X-Gm-Message-State: AHYfb5iMS23CH1aqZ2MRg9skyeDWAMxnVZw6NQ6QpwG+1s5bk5rIZke9 nOc2h+fRIVh2Rw== X-Received: by 10.98.19.24 with SMTP id b24mr10283497pfj.5.1503671025623; Fri, 25 Aug 2017 07:23:45 -0700 (PDT) Received: from gmail.com ([117.196.97.99]) by smtp.gmail.com with ESMTPSA id y14sm2810332pfg.102.2017.08.25.07.23.35 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Aug 2017 07:23:44 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 25 Aug 2017 19:53:32 +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 6/7] netfilter: nat: make rhashtable_params const Date: Fri, 25 Aug 2017 19:51:46 +0530 Message-Id: <1503670907-23221-7-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 --- net/netfilter/nf_nat_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_nat_core.c b/net/netfilter/nf_nat_core.c index b1d3740..df983ea 100644 --- a/net/netfilter/nf_nat_core.c +++ b/net/netfilter/nf_nat_core.c @@ -198,7 +198,7 @@ static int nf_nat_bysource_cmp(struct rhashtable_compare_arg *arg, return 0; } -static struct rhashtable_params nf_nat_bysource_params = { +static const struct rhashtable_params nf_nat_bysource_params = { .head_offset = offsetof(struct nf_conn, nat_bysource), .obj_hashfn = nf_nat_bysource_hash, .obj_cmpfn = nf_nat_bysource_cmp,