[Intel-wired-lan] [PATCH] ixgbe: declare ixgbe_mac_operations structures as const

Bowers, AndrewX andrewx.bowers at intel.com
Tue Aug 8 23:20:06 UTC 2017


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Bhumika Goyal
> Sent: Monday, July 17, 2017 8:01 AM
> To: julia.lawall at lip6.fr; Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>; intel-
> wired-lan at lists.osuosl.org; netdev at vger.kernel.org; linux-
> kernel at vger.kernel.org
> Cc: Bhumika Goyal <bhumirks at gmail.com>
> Subject: [Intel-wired-lan] [PATCH] ixgbe: declare ixgbe_mac_operations
> structures as const
> 
> Declare ixgbe_mac_operations structures as const as they are only stored in
> the mac_ops field of ixgbe_info structure. This field is of type const and
> therefore ixgbe_mac_operations structure can be made const too.
> 
> Signed-off-by: Bhumika Goyal <bhumirks at gmail.com>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list