[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c9ada435-af29-c5e0-b72d-374199f6b6f9@osg.samsung.com>
Date: Fri, 25 Aug 2017 16:36:37 +0200
From: Stefan Schmidt <stefan@....samsung.com>
To: Bhumika Goyal <bhumirks@...il.com>, julia.lawall@...6.fr,
marcel@...tmann.org, gustavo@...ovan.org, johan.hedberg@...il.com,
davem@...emloft.net, pablo@...filter.org, kadlec@...ckhole.kfki.hu,
fw@...len.de, stephen@...workplumber.org, alex.aring@...il.com,
kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org,
santosh.shilimkar@...cle.com, trond.myklebust@...marydata.com,
anna.schumaker@...app.com, bfields@...ldses.org,
jlayton@...chiereds.net, linux-bluetooth@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
bridge@...ts.linux-foundation.org, linux-wpan@...r.kernel.org,
linux-rdma@...r.kernel.org, rds-devel@....oracle.com,
linux-nfs@...r.kernel.org
Subject: Re: [PATCH 3/7] ieee802154: 6lowpan: make header_ops const
Hello.
On 08/25/2017 04:21 PM, Bhumika Goyal wrote:
> 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 <bhumirks@...il.com>
> ---
> 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,
> };
>
>
Acked-by: Stefan Schmidt <stefan@....samsung.com>
regards
Stefan Schmidt
Powered by blists - more mailing lists