diff options
author | Jingjing Wu | 2015-09-28 20:12:31 +0200 |
---|---|---|
committer | Jeff Kirsher | 2015-10-16 13:38:35 +0200 |
commit | 4e68adfeb91d684e5c7a0c6305af872120c71f23 (patch) | |
tree | 97032042e904aee8db0e7181871a3f3ec6c56b5d /drivers/net/ethernet/intel/i40e/i40e_prototype.h | |
parent | i40e: generate fewer startup messages (diff) | |
download | kernel-qcow2-linux-4e68adfeb91d684e5c7a0c6305af872120c71f23.tar.gz kernel-qcow2-linux-4e68adfeb91d684e5c7a0c6305af872120c71f23.tar.xz kernel-qcow2-linux-4e68adfeb91d684e5c7a0c6305af872120c71f23.zip |
i40e/i40evf: Fix compile issue related to const string
Add const to functions that return strings that aren't going to be
modified. This addresses some reported compile complaints.
Change-ID: Ic56b1e814ab4d23a50480e7fdec652445f776ee8
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_prototype.h')
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_prototype.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_prototype.h b/drivers/net/ethernet/intel/i40e/i40e_prototype.h index 4454974b27e7..10bf2ba8bc15 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_prototype.h +++ b/drivers/net/ethernet/intel/i40e/i40e_prototype.h @@ -58,8 +58,8 @@ void i40e_debug_aq(struct i40e_hw *hw, enum i40e_debug_mask mask, void i40e_idle_aq(struct i40e_hw *hw); bool i40e_check_asq_alive(struct i40e_hw *hw); i40e_status i40e_aq_queue_shutdown(struct i40e_hw *hw, bool unloading); -char *i40e_aq_str(struct i40e_hw *hw, enum i40e_admin_queue_err aq_err); -char *i40e_stat_str(struct i40e_hw *hw, i40e_status stat_err); +const char *i40e_aq_str(struct i40e_hw *hw, enum i40e_admin_queue_err aq_err); +const char *i40e_stat_str(struct i40e_hw *hw, i40e_status stat_err); i40e_status i40e_aq_get_rss_lut(struct i40e_hw *hw, u16 seid, bool pf_lut, u8 *lut, u16 lut_size); |