All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] two missing bits (was Re: Add -Wcast-qual flag)
@ 2006-12-22  9:05 Christoph Egger
  2006-12-22  9:31 ` Jan Beulich
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Egger @ 2006-12-22  9:05 UTC (permalink / raw)
  To: xen-devel; +Cc: Keir Fraser

[-- Attachment #1: Type: text/plain, Size: 147 bytes --]


Hi!

I catched two pieces with debug and crash_debug enabled.
One of them fixes a build error even without the -Wcast-qual flag.

Patch attached.

[-- Attachment #2: xen-cast-xen.diff --]
[-- Type: text/x-diff, Size: 871 bytes --]

diff -r f1ddc050d848 xen/common/gdbstub.c
--- a/xen/common/gdbstub.c	Thu Dec 21 20:44:35 2006 +0000
+++ b/xen/common/gdbstub.c	Fri Dec 22 09:51:42 2006 +0100
@@ -382,7 +382,7 @@ static int
 static int 
 process_command(struct cpu_user_regs *regs, struct gdb_context *ctx)
 {
-    char *ptr;
+    const char *ptr;
     unsigned long addr, length;
     int resume = 0;
 
diff -r f1ddc050d848 xen/include/asm-x86/bitops.h
--- a/xen/include/asm-x86/bitops.h	Thu Dec 21 20:44:35 2006 +0000
+++ b/xen/include/asm-x86/bitops.h	Fri Dec 22 09:48:48 2006 +0100
@@ -246,7 +246,7 @@ static __inline__ int constant_test_bit(
 	return ((1U << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0;
 }
 
-static __inline__ int variable_test_bit(int nr, const volatile void * addr)
+static __inline__ int variable_test_bit(int nr, volatile void * addr)
 {
 	int oldbit;
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2006-12-22  9:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-22  9:05 [PATCH] two missing bits (was Re: Add -Wcast-qual flag) Christoph Egger
2006-12-22  9:31 ` Jan Beulich
2006-12-22  9:40   ` Keir Fraser
2006-12-22  9:51     ` Jan Beulich
2006-12-22  9:55       ` Christoph Egger
2006-12-22  9:52     ` Christoph Egger
2006-12-22  9:44   ` Christoph Egger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.