[Intel-wired-lan] [PATCH] i40e: constify i40e_client_ops structure

Bowers, AndrewX andrewx.bowers at intel.com
Mon May 2 14:28:16 UTC 2016


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Julia Lawall
> Sent: Sunday, May 01, 2016 5:07 AM
> To: linux-kernel at vger.kernel.org
> Cc: Ismail, Mustafa <mustafa.ismail at intel.com>; netdev at vger.kernel.org;
> Latif, Faisal <faisal.latif at intel.com>; linux-rdma at vger.kernel.org; Nikolova,
> Tatyana E <tatyana.e.nikolova at intel.com>; Tung, Chien Tin
> <chien.tin.tung at intel.com>; kernel-janitors at vger.kernel.org; Doug Ledford
> <dledford at redhat.com>; intel-wired-lan at lists.osuosl.org; Hefty, Sean
> <sean.hefty at intel.com>; Saleem, Shiraz <shiraz.saleem at intel.com>; Hal
> Rosenstock <hal.rosenstock at gmail.com>
> Subject: [Intel-wired-lan] [PATCH] i40e: constify i40e_client_ops structure
> 
> The i40e_client_ops structure is never modified, so declare it as const.
> 
> Done with the help of Coccinelle.
> 
> Signed-off-by: Julia Lawall <Julia.Lawall at lip6.fr>
> 
> ---
>  drivers/infiniband/hw/i40iw/i40iw_main.c      |    2 +-
>  drivers/net/ethernet/intel/i40e/i40e_client.h |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
Changes applied correctly, driver builds and passes traffic as expected


More information about the Intel-wired-lan mailing list