From aa4b04a09cf79adc3c133fe27d9d06d5c3fc1db9 Mon Sep 17 00:00:00 2001 From: Pranith Kumar Date: Mon, 27 Jun 2016 17:53:04 -0400 Subject: [PATCH] misc/aspeed_scu: Fix build error caused by missing header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tracing configurations error out currently as follows: /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c: In function ‘aspeed_scu_read’: /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c:130:9: error: implicit declaration of function ‘qemu_log_mask’ [-Werror=implicit-function-declaration] /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c:130:9: error: nested extern declaration of ‘qemu_log_mask’ [-Werror=nested-externs] /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c:130:23: error: ‘LOG_GUEST_ERROR’ undeclared (first use in this function) /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c:130:23: note: each undeclared identifier is reported only once for each function it appears in /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c: In function ‘aspeed_scu_write’: /home/travis/build/pranith/qemu/hw/misc/aspeed_scu.c:154:23: error: ‘LOG_GUEST_ERROR’ undeclared (first use in this function) This is caused by a missing header file. Fix it. Signed-off-by: Pranith Kumar Reviewed-by: Andrew Jeffery Message-id: 20160627215304.821-1-bobby.prani@gmail.com Signed-off-by: Peter Maydell --- hw/misc/aspeed_scu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/misc/aspeed_scu.c b/hw/misc/aspeed_scu.c index 4f9df581e7..23f51752b0 100644 --- a/hw/misc/aspeed_scu.c +++ b/hw/misc/aspeed_scu.c @@ -15,6 +15,7 @@ #include "qapi/error.h" #include "qapi/visitor.h" #include "qemu/bitops.h" +#include "qemu/log.h" #include "trace.h" #define TO_REG(offset) ((offset) >> 2)