From patchwork Fri Aug 25 14:21:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9922169 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 0B577603FA for ; Fri, 25 Aug 2017 14:26:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1A2E28382 for ; Fri, 25 Aug 2017 14:26:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E61E72838B; Fri, 25 Aug 2017 14:26:42 +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=unavailable 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 AEF7B2839C for ; Fri, 25 Aug 2017 14:26:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932585AbdHYOW3 (ORCPT ); Fri, 25 Aug 2017 10:22:29 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33442 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbdHYOWZ (ORCPT ); Fri, 25 Aug 2017 10:22:25 -0400 Received: by mail-pg0-f68.google.com with SMTP id q16so3952140pgc.0; Fri, 25 Aug 2017 07:22:24 -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=8s+XzZR2rzGJhiLqDw1XkTf5y07VPafipiDWvwbOtGc=; b=EbfRPPG9NdYke6ZkQD4w1xzTS0GnBx1rDc0clprCZaX3GAvFHBrTYFfehM9fQxjBHv iCFDLuYCioBfeHmeKEkdtGJD5AY4cUpXvXaR7Sb1qvdlESkOWNTVZ4wvNxXzHILNWalW ilOzu2dVUNM6F8D+tLF1LkPXvNq176VJL/p1zvIdxkWUiWa0Ezn8KPoPqmR2eRt46yuM 5ww/9GiAB+FMR1jki9a+y24qG8q9Jm2BhnKky/GFCk4b3dexrVBT/d4OSRQ4F+PpJzLZ B3cgSQjN2JrzfjiW1ZOuAkejt5g25aS4D+Do5Y85FCDjDr3kHw2NbOo/J96PVwI3Afh9 rzzQ== 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=8s+XzZR2rzGJhiLqDw1XkTf5y07VPafipiDWvwbOtGc=; b=tKk2EwtHKfThknzSAULet2s+Nw8PqKaVnid2J/TcQDTpynfkAyyf/Q6BUcN85jtAm8 3BiAYM1qID0jUbZdSmLo1DEHPIHl9dPJ79iH5BnEOgZm3r+aR70coDzqcSmKAVXqG883 n+zY36mdVdy/bSaSXUYwFc+DL1Lv+eWGcJ6zGxN31s3WcSNPmzLzWZ0O1zC5X70SQXcM +kfOJDrq0KMXSOynTX3rhrFE/dTK5j4gKXgpCuZT9k9rQo7nHvGOPbWCRzCKp476S/Xq sv4x6xMkjo11uJYoNVKnQtUPwcN7Qd+IsbqCcvXqaSXPmOqC92bNMdmhZftKTow+g7pY 3z1A== X-Gm-Message-State: AHYfb5gJhYx0xsrNuofiOYWv40yfu91sne9f262Gx/qgLQAiXn0wiyXK CBq+UDzCHmjBMw== X-Received: by 10.99.98.134 with SMTP id w128mr9709851pgb.343.1503670944268; Fri, 25 Aug 2017 07:22:24 -0700 (PDT) Received: from gmail.com ([117.196.97.99]) by smtp.gmail.com with ESMTPSA id h81sm12341559pfj.72.2017.08.25.07.22.13 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Aug 2017 07:22:23 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 25 Aug 2017 19:52: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 1/7] Bluetooth: 6lowpan: make header_ops const Date: Fri, 25 Aug 2017 19:51:41 +0530 Message-Id: <1503670907-23221-2-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 stored as a reference in a const field of a net_device structure. Signed-off-by: Bhumika Goyal --- net/bluetooth/6lowpan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 4e2576f..50fcdd1 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -581,7 +581,7 @@ static int bt_dev_init(struct net_device *dev) .ndo_start_xmit = bt_xmit, }; -static struct header_ops header_ops = { +static const struct header_ops header_ops = { .create = header_create, };