projects/linux·commit 0cba01db

[PATCH] cdrom: use unsigned bitfields

0cba01db · Randy Dunlap <[email protected]> · 2007-02-20 13:58:05 -08:00

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 <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
0cba01db647fa87d14aeccac5267aebfeb2fc1d2
Parents
23cac8de

Changes

1 files changed · +1 −1

FileStatusAddDelContent
include/linux/cdrom.hmodified+1−1View file

include/linux/cdrom.h

View file
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h
index bbbe7b4..f50f04b 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 */