Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756547AbYHSAsc (ORCPT ); Mon, 18 Aug 2008 20:48:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756077AbYHSAr7 (ORCPT ); Mon, 18 Aug 2008 20:47:59 -0400 Received: from hs-out-0708.google.com ([64.233.178.250]:26031 "EHLO hs-out-0708.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755558AbYHSAr6 (ORCPT ); Mon, 18 Aug 2008 20:47:58 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=ITdet0VHz0k4jQX3G1uO8lDhp81BWL1qGy6J8IMgYJhpnNGFrNND0yOkv6P4ec5O73 Tt4tId+8sv7O3xm1bf3iL4lq9Cc9YX3vafakNQa6uKCKY8y8qDekbwjsx0FKEi5kirGo bDRyJJIJjhiYB2w7bTD/Z4LvsBg+NYpnvUgp8= Subject: [PATCH 02/23] arm: use the new byteorder headers From: Harvey Harrison To: Andrew Morton Cc: Russell King , LKML Content-Type: text/plain Date: Mon, 18 Aug 2008 17:47:55 -0700 Message-Id: <1219106875.17033.55.camel@brick> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1451 Lines: 57 Signed-off-by: Harvey Harrison --- arch/arm/include/asm/byteorder.h | 25 +++++++++++-------------- 1 files changed, 11 insertions(+), 14 deletions(-) diff --git a/arch/arm/include/asm/byteorder.h b/arch/arm/include/asm/byteorder.h index 4fbfb22..d04a7a2 100644 --- a/arch/arm/include/asm/byteorder.h +++ b/arch/arm/include/asm/byteorder.h @@ -18,7 +18,15 @@ #include #include -static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) +#ifdef __ARMEB__ +# define __BIG_ENDIAN +#else +# define __LITTLE_ENDIAN +#endif + +#define __SWAB_64_THRU_32__ + +static inline __attribute_const__ __u32 __arch_swab32(__u32 x) { __u32 t; @@ -40,19 +48,8 @@ static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) return x; } +#define __arch_swab32 __arch_swab32 -#define __arch__swab32(x) ___arch__swab32(x) - -#if !defined(__STRICT_ANSI__) || defined(__KERNEL__) -# define __BYTEORDER_HAS_U64__ -# define __SWAB_64_THRU_32__ -#endif - -#ifdef __ARMEB__ -#include -#else -#include -#endif +#include #endif - -- 1.6.0.274.g8aacc -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/