i386: Fix the build.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 22 Dec 2008 13:48:40 +0000 (13:48 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 22 Dec 2008 13:48:40 +0000 (13:48 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/arch/x86/cpu/mcheck/p5.c

index b951fb9fbdaba1b1179efe258bb48cbd25329615..e5ce422617bd8a2184ed59434d25cc679f92b37c 100644 (file)
@@ -239,7 +239,7 @@ static int machine_check_poll(struct mc_info *mi, int calltype)
         add_taint(TAINT_MACHINE_CHECK);
         /*Clear state for this bank */
         wrmsrl(MSR_IA32_MC0_STATUS + 4 * i, 0);
-        printk(KERN_DEBUG "mcheck_poll: bank%i CPU%d status[%lx]\n", 
+        printk(KERN_DEBUG "mcheck_poll: bank%i CPU%d status[%"PRIx64"]\n", 
                 i, cpu, status);
         printk(KERN_DEBUG "mcheck_poll: CPU%d, SOCKET%d, CORE%d, APICID[%d], "
                 "thread[%d]\n", cpu, mcg.mc_socketid, 
@@ -609,8 +609,8 @@ static void mce_intel_work_fn(void *data)
     on_each_cpu(mce_intel_checkregs, data, 1, 1);
     if (adjust) {
         period = period / (adjust + 1);
-        printk(KERN_DEBUG "mcheck_poll: Find error, shorten interval to %ld",
-            period);
+        printk(KERN_DEBUG "mcheck_poll: Find error, shorten interval "
+               "to %"PRIu64"\n", period);
     }
     else {
         period *= 2;
index ac952af082c206ae3db6a47cc69c27eabff114ce..97360bc7e7d35bfebfe5acf48d5cdb88bcc10360 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/msr.h>
 
 #include "mce.h"
+#include "x86_mca.h"
 
 /* Machine check handler for Pentium class Intel */
 static fastcall void pentium_machine_check(struct cpu_user_regs * regs, long error_code)