mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
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>
This commit is contained in:
parent
02b0bb51a8
commit
822ebc2cf5
@ -869,6 +869,8 @@ static const char *adapter_state_to_string(enum vnic_state state)
|
||||
return "REMOVING";
|
||||
case VNIC_REMOVED:
|
||||
return "REMOVED";
|
||||
case VNIC_DOWN:
|
||||
return "DOWN";
|
||||
}
|
||||
return "UNKNOWN";
|
||||
}
|
||||
@ -1968,6 +1970,8 @@ static const char *reset_reason_to_string(enum ibmvnic_reset_reason reason)
|
||||
return "TIMEOUT";
|
||||
case VNIC_RESET_CHANGE_PARAM:
|
||||
return "CHANGE_PARAM";
|
||||
case VNIC_RESET_PASSIVE_INIT:
|
||||
return "PASSIVE_INIT";
|
||||
}
|
||||
return "UNKNOWN";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user