linux-next: build warning after merge of the net-next tree

2 messages, 2 authors, 2021-06-11 · open the first message on its own page

linux-next: build warning after merge of the net-next tree

From: Stephen Rothwell <hidden>
Date: 2021-06-11 03:24:37

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

Re: linux-next: build warning after merge of the net-next tree

From: Lijun Pan <hidden>
Date: 2021-06-11 16:08:19

On Thu, Jun 10, 2021 at 10:26 PM Stephen Rothwell [off-list ref] 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/20210611153537.83420-1-lijunp213@gmail.com/T/#u

Thanks,
Lijun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help