LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] cdrom: use unsigned bitfields
@ 2007-02-14  0:15 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2007-02-14  0:15 UTC (permalink / raw)
  To: lkml; +Cc: axboe, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

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>
---
 include/linux/cdrom.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.20-git9.orig/include/linux/cdrom.h
+++ linux-2.6.20-git9/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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-14  0:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-14  0:15 [PATCH] cdrom: use unsigned bitfields Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).