[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170729200343.GH28392@breakpoint.cc>
Date: Sat, 29 Jul 2017 22:03:43 +0200
From: Florian Westphal <fw@...len.de>
To: Julia Lawall <Julia.Lawall@...6.fr>
Cc: "David S. Miller" <davem@...emloft.net>, bhumirks@...il.com,
kernel-janitors@...r.kernel.org,
Pablo Neira Ayuso <pablo@...filter.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] netfilter: constify nf_conntrack_l3/4proto parameters
Julia Lawall <Julia.Lawall@...6.fr> 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.
>
> Some spacing adjusted to fit within 80 characters.
Acked-by: Florian Westphal <fw@...len.de>
Thanks Julia.
I think we can indeed constify these completely after making
'nla_size' set at compile time.
I'll send a simple attempt to make it so for l3proto soon.
Powered by blists - more mailing lists