Skip to contentSkip to conversation

cdrom: use unsigned bitfields

PATCH New Randy Dunlap 1 participant 1 message Feb 14, 2007 Uniform cdrom driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cdrom: use unsigned bitfields

From: Randy Dunlap <[email protected]>

Fix 23 of these sparse warnings on x86_64 allmodconfig:
include/linux/cdrom.h:942:19: error: dubious bitfield without explicit signed' or unsigned'

---
 include/linux/cdrom.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/cdrom.h +1 -1
@@ -939,7 +939,7 @@ struct cdrom_device_info {
 	int speed;			/* maximum speed for reading data */
 	int capacity;			/* number of discs in jukebox */
 /* device-related storage */
-	int options		: 30;	/* options flags */
+	unsigned int options	: 30;	/* options flags */
 	unsigned mc_flags	: 2;	/* media change buffer flags */
     	int use_count;                  /* number of times device opened */
     	char name[20];                  /* name of the device type */