From: Harvey Harrison Date: Sat, 23 Feb 2008 23:23:33 +0000 (-0800) Subject: markers: fix sparse warnings in markers.c X-Git-Tag: v2.6.25-rc3~56 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=de4fc64f0f2a4efbaad3e7c1e1e05a28f69b45e5;p=linux-2.6-omap-h63xx.git markers: fix sparse warnings in markers.c char can be unsigned kernel/marker.c:64:20: error: dubious one-bit signed bitfield kernel/marker.c:65:14: error: dubious one-bit signed bitfield Signed-off-by: Harvey Harrison Acked-by: Mathieu Desnoyers Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/marker.c b/kernel/marker.c index c4c2cd8b61f..50effc01d9a 100644 --- a/kernel/marker.c +++ b/kernel/marker.c @@ -61,8 +61,8 @@ struct marker_entry { int refcount; /* Number of times armed. 0 if disarmed. */ struct rcu_head rcu; void *oldptr; - char rcu_pending:1; - char ptype:1; + unsigned char rcu_pending:1; + unsigned char ptype:1; char name[0]; /* Contains name'\0'format'\0' */ };