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

Lijun Pan lijunp213 at gmail.com
Wed May 5 05:39:10 AEST 2021

On Tue, May 4, 2021 at 2:19 PM Michal Suchanek <msuchanek at suse.de> 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: enumeration value 'VNIC_FOOBAR' not handled in switch [-Wswitch]
>   switch (state) {
>   ^~~~~~
> drivers/net/ethernet/ibm/ibmvnic.c: In function 'reset_reason_to_string':
> drivers/net/ethernet/ibm/ibmvnic.c:1935:2: warning: enumeration value 'VNIC_RESET_FOOBAR' not handled in switch [-Wswitch]
>   switch (reason) {
>   ^~~~~~
> Signed-off-by: Michal Suchanek <msuchanek at suse.de>
> Acked-by: Lijun Pan <lijunp213 at gmail.com>
> ---
> v2: Fix typo in commit message
> ---

Hi Michal,

Thank you for reposting the patch and including the Ack-by tag. I
think you need to wait till next Tuesday or so when net-next reopens,
then you can repost the patch.


More information about the Linuxppc-dev mailing list