From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUBP3-0002vj-Pm for qemu-devel@nongnu.org; Mon, 22 Apr 2013 03:43:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUBP2-0007wp-In for qemu-devel@nongnu.org; Mon, 22 Apr 2013 03:43:09 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:41028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUBP2-0007wK-D1 for qemu-devel@nongnu.org; Mon, 22 Apr 2013 03:43:08 -0400 Received: by mail-pa0-f44.google.com with SMTP id bi5so3436041pad.17 for ; Mon, 22 Apr 2013 00:43:06 -0700 (PDT) From: Alexey Kardashevskiy Date: Mon, 22 Apr 2013 17:42:50 +1000 Message-Id: <1366616571-4321-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH] translate-all: fix compiler warning and linked error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org Cc: Alexey Kardashevskiy 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 --- 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