Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Randy Dunlap and committed by
Linus Torvalds
0cba01db 23cac8de

+1 -1
+1 -1
include/linux/cdrom.h
··· 939 939 int speed; /* maximum speed for reading data */ 940 940 int capacity; /* number of discs in jukebox */ 941 941 /* device-related storage */ 942 - int options : 30; /* options flags */ 942 + unsigned int options : 30; /* options flags */ 943 943 unsigned mc_flags : 2; /* media change buffer flags */ 944 944 int use_count; /* number of times device opened */ 945 945 char name[20]; /* name of the device type */