From: Harvey Harrison Date: Sat, 23 Feb 2008 23:23:33 +0000 (-0800) Subject: markers: fix sparse warnings in markers.c X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=de4fc64f0f2a4efbaad3e7c1e1e05a28f69b45e5;p=openwrt%2Fstaging%2Fblogic.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 c4c2cd8b61f5..50effc01d9a2 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' */ };