From: Tim Deegan Date: Mon, 7 Mar 2011 16:07:06 +0000 (+0000) Subject: x86: Add another '&' to the function arg of run_in_exception_handler. X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6f52f1fc803977b6572c988137b8c2522c9e2c31;p=xen.git x86: Add another '&' to the function arg of run_in_exception_handler. This is needed to compile xen with clang. Signed-off-by: Tim Deegan Acked-by: Keir Fraser --- diff --git a/xen/include/asm-x86/bug.h b/xen/include/asm-x86/bug.h index 05083e0168..b98ae7725f 100644 --- a/xen/include/asm-x86/bug.h +++ b/xen/include/asm-x86/bug.h @@ -22,7 +22,7 @@ struct bug_frame { asm volatile ( \ "ud2 ; ret %0" BUG_STR(1) \ : : "i" (BUGFRAME_run_fn), \ - "i" (fn) ) + "i" (&(fn)) ) #define WARN() \ asm volatile ( \