Re: [PATCH v2 net-next resend] ibmvnic: remove default label from to_string switch

2021-05-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Thu, 20 May 2021 08:50:34 +0200 you wrote: > This way the compiler warns when a new value is added to the enum but > not to the string translation like: > > drivers/net/ethernet/ibm/ibmvnic.c: In function

[PATCH v2 net-next resend] ibmvnic: remove default label from to_string switch

2021-05-20 Thread Michal Suchanek
This way the compiler warns when a new value is added to the enum but not to the string translation like: drivers/net/ethernet/ibm/ibmvnic.c: In function 'adapter_state_to_string': drivers/net/ethernet/ibm/ibmvnic.c:832:2: warning: enumeration value 'VNIC_FOOBAR' not handled in switch [-Wswitch]

Re: [PATCH v2 net-next resend] ibmvnic: remove default label from to_string switch

2021-05-04 Thread Lijun Pan
On Tue, May 4, 2021 at 2:19 PM Michal Suchanek wrote: > > This way the compiler warns when a new value is added to the enum but > not to the string translation like: > > drivers/net/ethernet/ibm/ibmvnic.c: In function 'adapter_state_to_string': > drivers/net/ethernet/ibm/ibmvnic.c:832:2: warning:

[PATCH v2 net-next resend] ibmvnic: remove default label from to_string switch

2021-05-04 Thread Michal Suchanek
This way the compiler warns when a new value is added to the enum but not to the string translation like: drivers/net/ethernet/ibm/ibmvnic.c: In function 'adapter_state_to_string': drivers/net/ethernet/ibm/ibmvnic.c:832:2: warning: enumeration value 'VNIC_FOOBAR' not handled in switch [-Wswitch]