Ian Campbell
2011-Apr-04 08:18 UTC
[PATCH] xen: netback: use unsigned type for one-bit bitfield.
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 at treblig.org> Signed-off-by: Ian Campbell <ian.campbell at citrix.com> Cc: netdev at vger.kernel.org Cc: xen-devel at lists.xensource.com --- drivers/net/xen-netback/xenbus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 22b8c35..1ce729d 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -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 *); -- 1.7.2.5
Seemingly Similar Threads
- [PATCH] xen: netback: use unsigned type for one-bit bitfield.
- [PATCH 7/8] netback: split event channels support
- Signed bit field; int have_hotplug_status_watch:1
- Signed bit field; int have_hotplug_status_watch:1
- Signed bit field; int have_hotplug_status_watch:1