public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] markers: fix sparse warnings in markers.c
@ 2008-02-21  7:21 Harvey Harrison
  2008-02-21 11:38 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: Harvey Harrison @ 2008-02-21  7:21 UTC (permalink / raw)
  To: Mathieu Desnoyers; +Cc: LKML

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 <harvey.harrison@gmail.com>
---
Introduced between -rc1 and -rc2
 kernel/marker.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/marker.c b/kernel/marker.c
index c4c2cd8..50effc0 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' */
 };
 
-- 
1.5.4.2.200.g99e75




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-21 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-21  7:21 [PATCH] markers: fix sparse warnings in markers.c Harvey Harrison
2008-02-21 11:38 ` Mathieu Desnoyers

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