Skip to content

Commit 0cba01d

Browse files
rddunlapLinus Torvalds
authored andcommitted
[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 <randy.dunlap@oracle.com> Cc: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 23cac8d commit 0cba01d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/cdrom.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ struct cdrom_device_info {
939939
int speed; /* maximum speed for reading data */
940940
int capacity; /* number of discs in jukebox */
941941
/* device-related storage */
942-
int options : 30; /* options flags */
942+
unsigned int options : 30; /* options flags */
943943
unsigned mc_flags : 2; /* media change buffer flags */
944944
int use_count; /* number of times device opened */
945945
char name[20]; /* name of the device type */

0 commit comments

Comments
 (0)