From patchwork Fri Aug 25 14:21:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9922161 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 64B7A602BD for ; Fri, 25 Aug 2017 14:26:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 575312837E for ; Fri, 25 Aug 2017 14:26:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BBB4283AF; Fri, 25 Aug 2017 14:26:19 +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 EEFAD28390 for ; Fri, 25 Aug 2017 14:26:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932697AbdHYOWm (ORCPT ); Fri, 25 Aug 2017 10:22:42 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35127 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbdHYOWk (ORCPT ); Fri, 25 Aug 2017 10:22:40 -0400 Received: by mail-pg0-f65.google.com with SMTP id r133so4106264pgr.2; Fri, 25 Aug 2017 07:22:39 -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=rOjjm5Ymjtea8q9Kte6K0RixXYCnUUiyL+Mn2Jzug+8=; b=u94H0xal3+jXNn87W6rLz+ZBbfFXT+zsYZ83u2SvF1Lk2z0TeNZlQkPZu77yH4JOTw sPRdaF7mFaL65Fe10jcqOBgp8QAd6v/kVunPEXx4DbScVq4XuHjkUhln+rz4dmwxREj8 p1qFtqgj2VmvuYeAAKSjjicCKLJr7Y+6lSGwzcAyK5NmOg0q79TmZJERuHtfdp3fYQp9 7hEqvLIV+bD5w3vz9Yryc+JsdfeRoIt+97tjehRUfPZV6bHwUYT6O6kkxiodCyhYBsIY D5qErpI7GZ2f+3ceP9qm989TI/zYjVZfiUSUTQcmfkOIbWM96NBnh8wghxXFwclT1s1I EdNg== 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=rOjjm5Ymjtea8q9Kte6K0RixXYCnUUiyL+Mn2Jzug+8=; b=HqalMlBxnxHxlZeBzXXYZdMIhD3T/BNz2QjvKSu8gtbxHzigesbNsZqAlX0pcC8gk0 sOQPnJcwFrKAqtvU1K4yj4gAXvV0m/7wqQkmpaKVRr/eJk+OvKMjn02OtxvVdTxGLCkr neZoWSmmHf0xPj10qeuAbuw5FGNBoDSYgaIbS1vgTyM8TaoNA/zM2YaW9RwMc88VNyam h/qrvSd4OWVlJqCQqQPCiGH/cEvCRO7zH7zi/Io+LpwtE02FjyZ4QaiBj+mfHhHkD9T8 AE1pmM/KQSnNiVOnI5Ah+tpoEkkCZZbepp0QZLTMpWbqZQq30j5JfDpvH107zVSQzXv9 IvRQ== X-Gm-Message-State: AHYfb5jC8QAoozP3MbyyTvTKsuHtsC177mOJIFx9E5wD8olhsPuPnI8O c3zz1MJyoiVqLA== X-Received: by 10.99.36.134 with SMTP id k128mr10124990pgk.413.1503670959337; Fri, 25 Aug 2017 07:22:39 -0700 (PDT) Received: from gmail.com ([117.196.97.99]) by smtp.gmail.com with ESMTPSA id n189sm10457728pfn.178.2017.08.25.07.22.27 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Aug 2017 07:22:36 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 25 Aug 2017 19:52:24 +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 2/7] bridge: make ebt_table const Date: Fri, 25 Aug 2017 19:51:42 +0530 Message-Id: <1503670907-23221-3-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 only passed to a const argument of the function ebt_register_table. Signed-off-by: Bhumika Goyal --- net/bridge/netfilter/ebtable_nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/netfilter/ebtable_nat.c b/net/bridge/netfilter/ebtable_nat.c index 4ecf506..57cd5bb 100644 --- a/net/bridge/netfilter/ebtable_nat.c +++ b/net/bridge/netfilter/ebtable_nat.c @@ -48,7 +48,7 @@ static int check(const struct ebt_table_info *info, unsigned int valid_hooks) return 0; } -static struct ebt_table frame_nat = { +static const struct ebt_table frame_nat = { .name = "nat", .table = &initial_table, .valid_hooks = NAT_VALID_HOOKS,