mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ac97_codec: make bitfield unsigned
@ 2006-06-28  0:52 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2006-06-28  0:52 UTC (permalink / raw)
  To: lkml; +Cc: perex, akpm

From: Randy Dunlap <rdunlap@xenotime.net>

Make a 1-bit bitfield unsigned (no space for sign bit).
Removes 24 sparse warnings from this one file:
include/linux/ac97_codec.h:262:13: error: dubious one-bit signed bitfield

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
 include/linux/ac97_codec.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2617-g11.orig/include/linux/ac97_codec.h
+++ linux-2617-g11/include/linux/ac97_codec.h
@@ -259,7 +259,7 @@ struct ac97_codec {
 	int type;
 	u32 model;
 
-	int modem:1;
+	unsigned int modem:1;
 
 	struct ac97_ops *codec_ops;
 


---

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

only message in thread, other threads:[~2006-06-28  0:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-28  0:52 [PATCH] ac97_codec: make bitfield unsigned Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®