public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2.6.20] Remove sparse warning from unwind code
@ 2007-03-01  5:19 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2007-03-01  5:19 UTC (permalink / raw)
  To: linux-ia64

Running ia64 through sparse gives warnings in the unwind code.

  include/asm-ia64/unwind.h:84:17: error: dubious bitfield without explicit `signed' or `unsigned'

Make the bitfield explicitly unsigned.

Signed-off-by: Keith Owens <kaos@sgi.com>

Index: linux/include/asm-ia64/unwind.h
=================================--- linux.orig/include/asm-ia64/unwind.h	2007-02-05 05:44:54.000000000 +1100
+++ linux/include/asm-ia64/unwind.h	2007-03-01 15:48:47.936874767 +1100
@@ -81,7 +81,7 @@ struct unw_frame_info {
 	struct unw_ireg {
 		unsigned long *loc;
 		struct unw_ireg_nat {
-			long type : 3;			/* enum unw_nat_type */
+			unsigned long type : 3;		/* enum unw_nat_type */
 			signed long off : 61;		/* NaT word is at loc+nat.off */
 		} nat;
 	} r4, r5, r6, r7;


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

only message in thread, other threads:[~2007-03-01  5:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01  5:19 [patch 2.6.20] Remove sparse warning from unwind code Keith Owens

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