Re: [PATCH] ipvlan: constify l3mdev_ops structure

2016-10-15 Thread David Miller
From: Julia Lawall Date: Sat, 15 Oct 2016 17:40:30 +0200 > This l3mdev_ops structure is only stored in the l3mdev_ops field of a > net_device structure. This field is declared const, so the l3mdev_ops > structure can be declared as const also. Additionally drop the > __read_mostly annotation. >

[PATCH] ipvlan: constify l3mdev_ops structure

2016-10-15 Thread Julia Lawall
This l3mdev_ops structure is only stored in the l3mdev_ops field of a net_device structure. This field is declared const, so the l3mdev_ops structure can be declared as const also. Additionally drop the __read_mostly annotation. The semantic patch that adds const is as follows: (http://coccinell