Commit 822ebc2c authored by Lijun Pan's avatar Lijun Pan Committed by David S. Miller

ibmvnic: fix kernel build warning

drivers/net/ethernet/ibm/ibmvnic.c: In function ‘adapter_state_to_string’:
drivers/net/ethernet/ibm/ibmvnic.c:855:2: warning: enumeration value ‘VNIC_DOWN’ not handled in switch [-Wswitch]
  855 |  switch (state) {
      |  ^~~~~~
drivers/net/ethernet/ibm/ibmvnic.c: In function ‘reset_reason_to_string’:
drivers/net/ethernet/ibm/ibmvnic.c:1958:2: warning: enumeration value ‘VNIC_RESET_PASSIVE_INIT’ not handled in switch [-Wswitch]
 1958 |  switch (reason) {
      |  ^~~~~~
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarLijun Pan <lijunp213@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 02b0bb51
...@@ -869,6 +869,8 @@ static const char *adapter_state_to_string(enum vnic_state state) ...@@ -869,6 +869,8 @@ static const char *adapter_state_to_string(enum vnic_state state)
return "REMOVING"; return "REMOVING";
case VNIC_REMOVED: case VNIC_REMOVED:
return "REMOVED"; return "REMOVED";
case VNIC_DOWN:
return "DOWN";
} }
return "UNKNOWN"; return "UNKNOWN";
} }
...@@ -1968,6 +1970,8 @@ static const char *reset_reason_to_string(enum ibmvnic_reset_reason reason) ...@@ -1968,6 +1970,8 @@ static const char *reset_reason_to_string(enum ibmvnic_reset_reason reason)
return "TIMEOUT"; return "TIMEOUT";
case VNIC_RESET_CHANGE_PARAM: case VNIC_RESET_CHANGE_PARAM:
return "CHANGE_PARAM"; return "CHANGE_PARAM";
case VNIC_RESET_PASSIVE_INIT:
return "PASSIVE_INIT";
} }
return "UNKNOWN"; return "UNKNOWN";
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment