From patchwork Tue Jun 14 01:22:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 100220 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C5AF6B6FB6 for ; Tue, 14 Jun 2011 11:45:55 +1000 (EST) Received: from localhost ([::1]:38677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWIhU-0004lL-Gi for incoming@patchwork.ozlabs.org; Mon, 13 Jun 2011 21:45:52 -0400 Received: from eggs.gnu.org ([140.186.70.92]:40944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWIKd-00086T-VU for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWIKZ-0003fg-V0 for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:15 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:59348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWIKZ-0003fM-Ib for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:11 -0400 Received: from smtp08.web.de ( [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id 01DBB192343A0; Tue, 14 Jun 2011 03:22:11 +0200 (CEST) Received: from [87.173.124.240] (helo=af.local) by smtp08.web.de with asmtp (WEB.DE 4.110 #2) id 1QWIKY-0002ji-01; Tue, 14 Jun 2011 03:22:10 +0200 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Tue, 14 Jun 2011 03:22:03 +0200 Message-Id: <1308014527-60251-7-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.7.5.3 In-Reply-To: <1308014527-60251-6-git-send-email-andreas.faerber@web.de> References: <1308014527-60251-1-git-send-email-andreas.faerber@web.de> <1308014527-60251-2-git-send-email-andreas.faerber@web.de> <1308014527-60251-3-git-send-email-andreas.faerber@web.de> <1308014527-60251-4-git-send-email-andreas.faerber@web.de> <1308014527-60251-5-git-send-email-andreas.faerber@web.de> <1308014527-60251-6-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX19dCG+MmS1GRuWVJTwzhoN8J0SdiCdK69+OaltB i5exuiRoSgMAaHPp39YrsDk5oOIL/3qwe8IsejLI0XI13nJIqZ oD+QVGfllocHuS5DXweg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.234 Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , Hollis Blanchard Subject: [Qemu-devel] [PATCH 06/10] Fix libfdt warnings on Darwin X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Building with libfdt results in the following warnings on Mac OS X: CC ppc-softmmu/device_tree.o In file included from /Users/andreas/QEMU/latest64/include/libfdt.h:54, from /Users/andreas/QEMU/qemu/device_tree.c:26: /Users/andreas/QEMU/qemu/libfdt_env.h:25:20: warning: endian.h: No such file or directory /Users/andreas/QEMU/qemu/libfdt_env.h:26:22: warning: byteswap.h: No such file or directory /Users/andreas/QEMU/qemu/libfdt_env.h:28:5: warning: "__BYTE_ORDER" is not defined /Users/andreas/QEMU/qemu/libfdt_env.h:28:21: warning: "__BIG_ENDIAN" is not defined Since QEMU's copy of libfdt_env.h only uses bswap_32() and bswap_64(), let QEMU's bswap.h take care of the headers and use its endianness define. Cc: Hollis Blanchard Signed-off-by: Andreas Färber Acked-by: Alexander Graf --- libfdt_env.h | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libfdt_env.h b/libfdt_env.h index ee0419f..90d7f3b 100644 --- a/libfdt_env.h +++ b/libfdt_env.h @@ -19,13 +19,9 @@ #ifndef _LIBFDT_ENV_H #define _LIBFDT_ENV_H -#include -#include -#include -#include -#include +#include "bswap.h" -#if __BYTE_ORDER == __BIG_ENDIAN +#ifdef HOST_WORDS_BIGENDIAN #define fdt32_to_cpu(x) (x) #define cpu_to_fdt32(x) (x) #define fdt64_to_cpu(x) (x)