Received: from eggs.gnu.org ([2001:4830:134:3::10]:43979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHeSt-0005LB-2K for qemu-devel@nongnu.org; Mon, 27 Jun 2016 17:53:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHeSo-0005Yv-QG for qemu-devel@nongnu.org; Mon, 27 Jun 2016 17:53:10 -0400 Received: from mail-qk0-x243.google.com ([2607:f8b0:400d:c09::243]:35353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHeSo-0005Yp-M5 for qemu-devel@nongnu.org; Mon, 27 Jun 2016 17:53:06 -0400 Received: by mail-qk0-x243.google.com with SMTP id b136so32958136qkg.2 for ; Mon, 27 Jun 2016 14:53:06 -0700 (PDT) From: Pranith Kumar Date: Mon, 27 Jun 2016 17:53:04 -0400 Message-Id: <20160627215304.821-1-bobby.prani@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] misc/aspeed_scu: Fix build error caused by missing header List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Andrew Jeffery , "open list:All patches CC here" 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 --- 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 4f9df58..23f5175 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) -- 2.9.0