[Intel-wired-lan] [PATCH S10 15/15] ice: add const qualifier to mac_addr parameter

Bowers, AndrewX andrewx.bowers at intel.com
Thu Dec 20 21:42:21 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Wednesday, December 19, 2018 10:04 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S10 15/15] ice: add const qualifier to
> mac_addr parameter
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> The function ice_aq_manage_mac_write takes a pointer to a MAC address.
> The parameter is not marked const, even though the function doesn't need
> to modify it. This prevents passing a parameter that is already marked const.
> Update the function prototype to take a const pointer, to allow passing
> constant pointers to this function.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_common.c | 6 +++---
> drivers/net/ethernet/intel/ice/ice_common.h | 2 +-
>  2 files changed, 4 insertions(+), 4 deletions(-)

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




More information about the Intel-wired-lan mailing list