Fix Xen to build with gcc-4.1.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines · Xen patchbot -unstable
# HG changeset patch
# User [email protected]
# Node ID14d733e5e1d014e302d72fb78df1428ee08e3ce3# Parent6cc603ac3f38f8f4b760899e963ef8165ae0c8eeFix Xen to build with gcc-4.1.Signed-off-by Vincent Hanquez <[email protected]>diff -r
6cc603ac3f38-r14d733e5e1d0xen/include/asm-x86/apic.h
xen/include/asm-x86/apic.h line 47
Quoted 6 lines
xen/include/asm-x86/apic.h +1
-1@@ -43,7 +43,7 @@static __inlinevoid apic_write_atomic (unsigned long reg,u32 v) { -xchg ((volatile u32 *)(APIC_BASE +reg), v); + (void )xchg ((volatile u32 *)(APIC_BASE +reg), v); }
Is it just me or are the gcc folks taking this stuff a little too far since gcc 4. Having to cast to void in an inline function just seems a bit overboard.
Quoted 8 lines
xen/include/asm-x86/apic.h +0
-0static __inlineu32 apic_read (unsigned long reg)_______________________________________________
Xen-changelog mailing list
[email protected]
http://lists.xensource.com/xen-changelog