ibmvnic: fix kernel build warning
authorLijun Pan <lijunp213@gmail.com>
Fri, 11 Jun 2021 15:35:37 +0000 (10:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Jun 2021 20:14:39 +0000 (13:14 -0700)
commit822ebc2cf50c4f223e859c35393b5cf0d96c56e1
tree0a1bd2cb4409f98977e944edaa0de422a4b15635
parent02b0bb51a8da92e76ab69e49de1f289d413a564b
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: kernel test robot <lkp@intel.com>
Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c