2021-06-11 03:26:47

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warning after merge of the net-next tree

Hi all,

After merging the net-next tree, today's linux-next build (powerpc
ppc64_defconfig) produced this 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) {
| ^~~~~~

Introduced by commit

53f8b1b25419 ("ibmvnic: Allow device probe if the device is not ready at boot")

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2021-06-11 16:09:34

by Lijun Pan

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the net-next tree

On Thu, Jun 10, 2021 at 10:26 PM Stephen Rothwell <[email protected]> wrote:
>
> Hi all,
>
> After merging the net-next tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this 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) {
> | ^~~~~~
>
> Introduced by commit
>
> 53f8b1b25419 ("ibmvnic: Allow device probe if the device is not ready at boot")
>
> --
> Cheers,
> Stephen Rothwell

https://lore.kernel.org/netdev/[email protected]/T/#u

Thanks,
Lijun