From patchwork Fri Aug 25 14:21:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9922141 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 3C4BF608A6 for ; Fri, 25 Aug 2017 14:25:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F002283BD for ; Fri, 25 Aug 2017 14:25:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 22CE3283A5; Fri, 25 Aug 2017 14:25:08 +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 B9DB6283BD for ; Fri, 25 Aug 2017 14:25:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933173AbdHYOW7 (ORCPT ); Fri, 25 Aug 2017 10:22:59 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38709 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932562AbdHYOWz (ORCPT ); Fri, 25 Aug 2017 10:22:55 -0400 Received: by mail-pg0-f66.google.com with SMTP id t3so4064109pgt.5; Fri, 25 Aug 2017 07:22:55 -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=z98SltI4O4JZgJXEO5rJeprg6BuI6jlvxOPbToXar1I=; b=Erlk1JV+VqImmqyGadXgoUZayRfRs+9gn50XUMCUjmlkyKoTJa8ovoQxHpkaMPxF6Z f9Kh8BvrTuaOkwFHqWbxPfy+KoFTzpoVFtIbAQoDDIP/uEUxGLY6i5FkytYjpeKtc2wr YlHpk4C3U+8wYpe80R8mClWTLT5sovP9+vSx102+h8hwf90ImhdGWfqsoKja47ijCI8a 1+Hu8vQ5eCkQa5nciu5YhyVXADVPBzrT/lOYwPE6cR85jk4h/QJUDw2e8kamkzN+X/fP WGQm1TGlu2hbJA7j/zhe9qgxjGdciHQaqYQVEt8OckVI0ktVlmtjxAxlwPI+km5Iz8ws jCng== 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=z98SltI4O4JZgJXEO5rJeprg6BuI6jlvxOPbToXar1I=; b=czszlQCoBPucv1oK7jY8BiaJZU9LnuyPu8aMP4J0T6CMHQTJNrYu+tNn3piQ4UpXNr zNLnzWJipds2W4bDd98yBKjBf4ad8InX0w4GS9Lp6BK5tj9OEyvqYke0mC/HDoKqpS3E /2g8fOnW+uJy5SBNfbQFnn/W8ZczgWgtcytL0khAcWRvRuQzhF41uqE6PCjXrZhDXLC/ e1zSB+avzjQSjGJG5G1Cu/VKh3VtFSu63c3KtVxoH0zobXAVnvaQavuNZlNuCPqUAIN4 k1PjbP/IYhycVI6ZdkElIqfJUU+ae1dQ3n9zbGb/2yKWnInzQ4rgcLXJW245u6ja4Lk/ vL/A== X-Gm-Message-State: AHYfb5i7CURR11LiZtW/hRYKxZdTIEAG6Hem3SC7jYGebg2YWQtJ5vop cdj4Z7JTRTnnmw== X-Received: by 10.99.139.76 with SMTP id j73mr879067pge.293.1503670974824; Fri, 25 Aug 2017 07:22:54 -0700 (PDT) Received: from gmail.com ([117.196.97.99]) by smtp.gmail.com with ESMTPSA id v2sm12163456pfl.21.2017.08.25.07.22.42 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 25 Aug 2017 07:22:54 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 25 Aug 2017 19:52:39 +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 3/7] ieee802154: 6lowpan: make header_ops const Date: Fri, 25 Aug 2017 19:51:43 +0530 Message-Id: <1503670907-23221-4-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 Acked-by: Stefan Schmidt --- net/ieee802154/6lowpan/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ieee802154/6lowpan/core.c b/net/ieee802154/6lowpan/core.c index de2661c..974765b 100644 --- a/net/ieee802154/6lowpan/core.c +++ b/net/ieee802154/6lowpan/core.c @@ -54,7 +54,7 @@ static int open_count; -static struct header_ops lowpan_header_ops = { +static const struct header_ops lowpan_header_ops = { .create = lowpan_header_create, };