Re: [PATCH 5/5] net: axienet: constify ethtool_ops structures
From: David Miller
Date: Wed Aug 31 2016 - 23:46:41 EST
From: Julia Lawall <Julia.Lawall@xxxxxxx>
Date: Thu, 1 Sep 2016 00:21:23 +0200
> Check for ethtool_ops structures that are only stored in the ethtool_ops
> field of a net_device structure or passed as the second argument to
> netdev_set_default_ethtool_ops. These contexts are declared const, so
> ethtool_ops structures that have these properties can be declared as const
> also.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
...
> Suggested-by: Stephen Hemminger <stephen@xxxxxxxxxxxxxxxxxx>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx>
Applied.