diff options
author | Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com> | 2009-10-13 17:22:29 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2010-10-18 10:49:36 -0400 |
commit | b78c9512563780d86a178f11b648bcf73b8d87ec (patch) | |
tree | bc2d239ab1a0e6bafe004a5283228b710c1c5f55 | |
parent | 89afb6e46a0f72e0e5c51ef44aa900b74681664b (diff) |
xenbus: prevent warnings on unhandled enumeration values
XenbusStateReconfiguring/XenbusStateReconfigured were introduced by
c/s 437, but aren't handled in many switch statements.
.. also pulled from the linux-2.6-sparse-tree tree.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
-rw-r--r-- | drivers/block/xen-blkfront.c | 2 | ||||
-rw-r--r-- | drivers/input/xen-kbdfront.c | 2 | ||||
-rw-r--r-- | drivers/net/xen-netfront.c | 2 | ||||
-rw-r--r-- | drivers/video/xen-fbfront.c | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index ab735a605cf3..c4e9d817caaa 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -1125,6 +1125,8 @@ static void blkback_changed(struct xenbus_device *dev, | |||
1125 | case XenbusStateInitialising: | 1125 | case XenbusStateInitialising: |
1126 | case XenbusStateInitWait: | 1126 | case XenbusStateInitWait: |
1127 | case XenbusStateInitialised: | 1127 | case XenbusStateInitialised: |
1128 | case XenbusStateReconfiguring: | ||
1129 | case XenbusStateReconfigured: | ||
1128 | case XenbusStateUnknown: | 1130 | case XenbusStateUnknown: |
1129 | case XenbusStateClosed: | 1131 | case XenbusStateClosed: |
1130 | break; | 1132 | break; |
diff --git a/drivers/input/xen-kbdfront.c b/drivers/input/xen-kbdfront.c index ebb11907d402..e0c024db2ca5 100644 --- a/drivers/input/xen-kbdfront.c +++ b/drivers/input/xen-kbdfront.c | |||
@@ -276,6 +276,8 @@ static void xenkbd_backend_changed(struct xenbus_device *dev, | |||
276 | switch (backend_state) { | 276 | switch (backend_state) { |
277 | case XenbusStateInitialising: | 277 | case XenbusStateInitialising: |
278 | case XenbusStateInitialised: | 278 | case XenbusStateInitialised: |
279 | case XenbusStateReconfiguring: | ||
280 | case XenbusStateReconfigured: | ||
279 | case XenbusStateUnknown: | 281 | case XenbusStateUnknown: |
280 | case XenbusStateClosed: | 282 | case XenbusStateClosed: |
281 | break; | 283 | break; |
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index b50fedcef8ac..cb6e112989d8 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -1610,6 +1610,8 @@ static void backend_changed(struct xenbus_device *dev, | |||
1610 | switch (backend_state) { | 1610 | switch (backend_state) { |
1611 | case XenbusStateInitialising: | 1611 | case XenbusStateInitialising: |
1612 | case XenbusStateInitialised: | 1612 | case XenbusStateInitialised: |
1613 | case XenbusStateReconfiguring: | ||
1614 | case XenbusStateReconfigured: | ||
1613 | case XenbusStateConnected: | 1615 | case XenbusStateConnected: |
1614 | case XenbusStateUnknown: | 1616 | case XenbusStateUnknown: |
1615 | case XenbusStateClosed: | 1617 | case XenbusStateClosed: |
diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c index 7c7f42a12796..428d273be727 100644 --- a/drivers/video/xen-fbfront.c +++ b/drivers/video/xen-fbfront.c | |||
@@ -631,6 +631,8 @@ static void xenfb_backend_changed(struct xenbus_device *dev, | |||
631 | switch (backend_state) { | 631 | switch (backend_state) { |
632 | case XenbusStateInitialising: | 632 | case XenbusStateInitialising: |
633 | case XenbusStateInitialised: | 633 | case XenbusStateInitialised: |
634 | case XenbusStateReconfiguring: | ||
635 | case XenbusStateReconfigured: | ||
634 | case XenbusStateUnknown: | 636 | case XenbusStateUnknown: |
635 | case XenbusStateClosed: | 637 | case XenbusStateClosed: |
636 | break; | 638 | break; |