linux: prevent warnings on unhandled enumeration values
Subsystems (2)
PATCH 1/1 linux: prevent warnings on unhandled enumeration values
XenbusStateReconfiguring/XenbusStateReconfigured were introduced by c/s 437, but aren't handled in many switch statements. This c/s also introduced a possibly un-referenced label, which also gets eliminated here.
As usual, written and tested on 2.6.25-rc3 and made apply to the 2.6.18 tree without further testing.
Signed-off-by Jan Beulich <[email protected]>
drivers/char/tpm/tpm_xen.c +2 -0
@@ -346,6 +346,8 @@ static void backend_changed(struct xenbucase XenbusStateInitialising:case XenbusStateInitWait:case XenbusStateInitialised: +case XenbusStateReconfiguring: +case XenbusStateReconfigured:case XenbusStateUnknown:break ;
drivers/xen/blkfront/blkfront.c +2 -0
@@ -266,6 +266,8 @@ static void backend_changed(struct xenbucase XenbusStateInitialising:case XenbusStateInitWait:case XenbusStateInitialised: +case XenbusStateReconfiguring: +case XenbusStateReconfigured:case XenbusStateUnknown:case XenbusStateClosed:break ;
drivers/xen/fbfront/xenfb.c +2 -0
@@ -687,6 +687,8 @@ static void xenfb_backend_changed(structswitch (backend_state) {case XenbusStateInitialising:case XenbusStateInitialised: +case XenbusStateReconfiguring: +case XenbusStateReconfigured:case XenbusStateUnknown:case XenbusStateClosed:break ;
drivers/xen/fbfront/xenkbd.c +2 -0
@@ -268,6 +268,8 @@ static void xenkbd_backend_changed(strucswitch (backend_state) {case XenbusStateInitialising:case XenbusStateInitialised: +case XenbusStateReconfiguring: +case XenbusStateReconfigured:case XenbusStateUnknown:case XenbusStateClosed:break ;
drivers/xen/netfront/netfront.c +2 -0
@@ -537,6 +537,8 @@ static void backend_changed(struct xenbucase XenbusStateInitialising:case XenbusStateInitialised:case XenbusStateConnected: +case XenbusStateReconfiguring: +case XenbusStateReconfigured:case XenbusStateUnknown:case XenbusStateClosed:break ;
drivers/xen/pcifront/pci_op.c +2 -5
@@ -359,7 +359,6 @@ int pcifront_rescan_root(struct pcifrontstruct pci_bus *b;struct pci_dev *d;unsigned int devfn; -int err =0 ;#ifndef CONFIG_PCI_DOMAINS if (domain !=0 ) {
@@ -367,8 +366,7 @@ int pcifront_rescan_root(struct pcifront "PCI Root in non-zero PCI Domain! domain=%d\n", domain);dev_err (&pdev->xdev->dev,"Please compile with CONFIG_PCI_DOMAINS\n" ); - err = -EINVAL ; - goto err_out; + return -EINVAL; }#endif
@@ -407,8 +405,7 @@ int pcifront_rescan_root(struct pcifront } } - err_out: -return err; +return 0 ; }static void free_root_bus_devs (struct pci_bus *bus)