From: Randy Dunlap Date: Tue, 20 Feb 2007 21:58:05 +0000 (-0800) Subject: [PATCH] cdrom: use unsigned bitfields X-Git-Tag: v2.6.21-rc1~27 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0cba01db647fa87d14aeccac5267aebfeb2fc1d2;p=linux-2.6-omap-h63xx.git [PATCH] cdrom: use unsigned bitfields Fix 23 of these sparse warnings on x86_64 allmodconfig: include/linux/cdrom.h:942:19: error: dubious bitfield without explicit `signed' or `unsigned' Signed-off-by: Randy Dunlap Cc: Jens Axboe Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h index bbbe7b4da0b..f50f04bdbc1 100644 --- a/include/linux/cdrom.h +++ b/include/linux/cdrom.h @@ -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 */