[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170802122355.GA13459@salvia>
Date: Wed, 2 Aug 2017 14:23:55 +0200
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Julia Lawall <Julia.Lawall@...6.fr>
Cc: "David S. Miller" <davem@...emloft.net>,
kernel-janitors@...r.kernel.org,
Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
Florian Westphal <fw@...len.de>,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1 v3 nf-next] netfilter: constify
nf_conntrack_l3/4proto parameters
On Tue, Aug 01, 2017 at 12:25:01PM +0200, Julia Lawall wrote:
> When a nf_conntrack_l3/4proto parameter is not on the left hand side
> of an assignment, its address is not taken, and it is not passed to a
> function that may modify its fields, then it can be declared as const.
>
> This change is useful from a documentation point of view, and can
> possibly facilitate making some nf_conntrack_l3/4proto structures const
> subsequently.
>
> Done with the help of Coccinelle.
Applied, thanks Julia.
Powered by blists - more mailing lists