[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] translate-all: fix compiler warning and linked er
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-trivial] [PATCH] translate-all: fix compiler warning and linked error |
Date: |
Mon, 22 Apr 2013 17:42:50 +1000 |
The code did use profile_getclock() but did not include
include/qemu/timer.h where this function is defined. The patch fixes this.
Signed-off-by: Alexey Kardashevskiy <address@hidden>
---
The exact warning and error messages are:
/home/alexey/pcipassthru/qemu-impreza/translate-all.c:150:5: warning: implicit
declaration of function 'profile_getclock' [-Wimplicit-function-declaration]
ti = profile_getclock();
^
...
/home/alexey/pcipassthru/qemu-impreza/translate-all.c:150: undefined reference
to `profile_getclock'
---
translate-all.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/translate-all.c b/translate-all.c
index 08dd038..d04a116 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -58,6 +58,7 @@
#include "exec/cputlb.h"
#include "translate-all.h"
+#include "qemu/timer.h"
//#define DEBUG_TB_INVALIDATE
//#define DEBUG_FLUSH
--
1.7.10.4