Signed bit field; int have_hotplug_status_watch:1
authorIan Campbell <Ian.Campbell@eu.citrix.com>
Sun, 3 Apr 2011 22:26:24 +0000 (22:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2011 21:43:33 +0000 (14:43 -0700)
Fixes error from sparse:
  CHECK   drivers/net/xen-netback/xenbus.c
drivers/net/xen-netback/xenbus.c:29:40: error: dubious one-bit signed bitfield

        int have_hotplug_status_watch:1;

Reported-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/xenbus.c

index 22b8c350599119931b74669bdae42739f9752135..1ce729d6af75b34f1a0177e5ee6af2ee4b29dfb3 100644 (file)
@@ -26,7 +26,7 @@ struct backend_info {
        struct xenvif *vif;
        enum xenbus_state frontend_state;
        struct xenbus_watch hotplug_status_watch;
-       int have_hotplug_status_watch:1;
+       u8 have_hotplug_status_watch:1;
 };
 
 static int connect_rings(struct backend_info *);