Received: from eggs.gnu.org ([2001:4830:134:3::10]:40663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUkPw-0002nD-1I for qemu-devel@nongnu.org; Mon, 10 Jul 2017 21:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUkPt-0001BN-1h for qemu-devel@nongnu.org; Mon, 10 Jul 2017 21:56:48 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:33593) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUkPs-0001BD-Rk for qemu-devel@nongnu.org; Mon, 10 Jul 2017 21:56:44 -0400 Received: by mail-qt0-f195.google.com with SMTP id c20so14973475qte.0 for ; Mon, 10 Jul 2017 18:56:44 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Mon, 10 Jul 2017 22:55:24 -0300 Message-Id: <20170711015524.22936-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] util/cacheinfo: add missing include List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, "Emilio G. Cota" , Richard Henderson , Pranith Kumar , =?UTF-8?q?Alex=20Benn=C3=A9e?= , David Gibson , Geert Martin Ijewski Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= This include was forgotten when splitting cacheinfo.c out of tcg/ppc/tcg-target.inc.c (see commit b255b2c8). While compiling on powerpc: CC util/cacheinfo.o qemu/util/cacheinfo.c: In function 'arch_cache_info': qemu/util/cacheinfo.c:137:33: error: 'AT_ICACHEBSIZE' undeclared (first use in this function) *isize = qemu_getauxval(AT_ICACHEBSIZE); ^ qemu/util/cacheinfo.c:137:33: note: each undeclared identifier is reported only once for each function it appears in qemu/util/cacheinfo.c:140:33: error: 'AT_DCACHEBSIZE' undeclared (first use in this function) *dsize = qemu_getauxval(AT_DCACHEBSIZE); ^ qemu/rules.mak:66: recipe for target 'util/cacheinfo.o' failed make: *** [util/cacheinfo.o] Error 1 Signed-off-by: Philippe Mathieu-Daudé --- util/cacheinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/cacheinfo.c b/util/cacheinfo.c index 6253049533..593940f27b 100644 --- a/util/cacheinfo.c +++ b/util/cacheinfo.c @@ -129,6 +129,7 @@ static void arch_cache_info(int *isize, int *dsize) } #elif defined(_ARCH_PPC) && defined(__linux__) +# include "elf.h" static void arch_cache_info(int *isize, int *dsize) { -- 2.13.2