Subject: [PATCH] cdc-acm: make bitfields unsigned To: linux-usb <linux-usb@xxxxxxxxxxxxxxx> Cc: Greg KH <gregkh@xxxxxxx>,Oliver Neukum <oliver@xxxxxxxxxxx> Bcc: =-=-=-=-=-=-=-=-=# Don't remove this line #=-=-=-=-=-=-=-=-=- From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Fix usb/class sparse warnings: drivers/usb/class/cdc-acm.h:128:34: error: dubious one-bit signed bitfield drivers/usb/class/cdc-acm.h:129:24: error: dubious one-bit signed bitfield Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx> --- drivers/usb/class/cdc-acm.h | 4 ++-- --- drivers/usb/class/cdc-acm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-2.6.33-git7.orig/drivers/usb/class/cdc-acm.h +++ linux-2.6.33-git7/drivers/usb/class/cdc-acm.h @@ -125,8 +125,8 @@ struct acm { unsigned char clocal; /* termios CLOCAL */ unsigned int ctrl_caps; /* control capabilities from the class specific header */ unsigned int susp_count; /* number of suspended interfaces */ - int combined_interfaces:1; /* control and data collapsed */ - int is_int_ep:1; /* interrupt endpoints contrary to spec used */ + unsigned int combined_interfaces:1; /* control and data collapsed */ + unsigned int is_int_ep:1; /* interrupt endpoints contrary to spec used */ u8 bInterval; struct acm_wb *delayed_wb; /* write queued for a device about to be woken */ }; -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html