From patchwork Fri Oct 5 12:58:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 189473 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 9DFE02C0332 for ; Fri, 5 Oct 2012 22:59:25 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F6C42809A; Fri, 5 Oct 2012 14:59:17 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SyAKVKKUa3uI; Fri, 5 Oct 2012 14:59:17 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 016DA2809C; Fri, 5 Oct 2012 14:59:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A8252808D for ; Fri, 5 Oct 2012 14:58:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vb2J6qPs5fWJ for ; Fri, 5 Oct 2012 14:58:58 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by theia.denx.de (Postfix) with ESMTPS id 97D872808C for ; Fri, 5 Oct 2012 14:58:56 +0200 (CEST) Received: by mail-wg0-f52.google.com with SMTP id fg15so1314686wgb.9 for ; Fri, 05 Oct 2012 05:58:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=0b0BqOpUk7jM6PTA7IJBM5s3pnA0fUoaEm4nN7QSDYw=; b=o7g4bzkStAbuAl079b4p9M5dJc0I0y091dGJemDBDp30xL+FqE7Yctf4GT4A2i/7Q0 JRxY5Zx9c/1W0kFkV30mlGnm5fIKuhxo382NLlYIFOcdv7HLaBii6DwNhA/ScMCjnhse JwprlPu5ZGoSsBvw9CX420OjwCCAusjzNOJSsFbeLWWVkpYvQlzcK8QGqO2slgcR48FY GIwVzjTmXCjC1AIFKIEZsG2vU5NWSTpptCp9YM/1fOF/lm0iVWPmPZo7qRASM7S5aUgZ NZgdZgmkmskVFOnaOJ/VBYkDabm/zGVQUIajJUdXrbT/FwKmsWdLtLr48dnaW2bhmDaG moMw== Received: by 10.180.8.41 with SMTP id o9mr3317404wia.3.1349441936605; Fri, 05 Oct 2012 05:58:56 -0700 (PDT) Received: from localhost (nat-2.starnet.cz. [92.62.224.2]) by mx.google.com with ESMTPS id ei1sm2238440wid.7.2012.10.05.05.58.55 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 05:58:56 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Fri, 5 Oct 2012 14:58:51 +0200 Message-Id: <1349441933-22840-2-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1349441933-22840-1-git-send-email-monstr@monstr.eu> References: <1349441933-22840-1-git-send-email-monstr@monstr.eu> X-Gm-Message-State: ALoCoQlWmcFDnF/92cxIlwlphnHzJLd0ck2H+5E5zxYKX0JGrHuRjflNhSBB1LTLqxtECsMnUoBc Subject: [U-Boot] [PATCH 2/4] microblaze: Fix byteorder for microblaze X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Just remove ancient code. Signed-off-by: Michal Simek Reviewed-by: Marek Vasut Acked-by: Stephan Linz --- arch/microblaze/include/asm/byteorder.h | 23 ----------------------- 1 files changed, 0 insertions(+), 23 deletions(-) diff --git a/arch/microblaze/include/asm/byteorder.h b/arch/microblaze/include/asm/byteorder.h index b2757a4..f3a471d 100644 --- a/arch/microblaze/include/asm/byteorder.h +++ b/arch/microblaze/include/asm/byteorder.h @@ -20,29 +20,6 @@ #ifdef __GNUC__ -/* This is effectively a dupe of the arch-independent byteswap - code in include/linux/byteorder/swab.h, however we force a cast - of the result up to 32 bits. This in turn forces the compiler - to explicitly clear the high 16 bits, which it wasn't doing otherwise. - - I think this is a symptom of a bug in mb-gcc. JW 20040303 -*/ - - -static __inline__ __u16 ___arch__swab16 (__u16 half_word) -{ - /* 32 bit temp to cast result, forcing clearing of high word */ - __u32 temp; - - temp = ((half_word & 0x00FFU) << 8) | ((half_word & 0xFF00U) >> 8); - - return (__u16) temp; -} - -#define __arch__swab16(x) ___arch__swab16(x) - -/* Microblaze has no arch-specific endian conversion insns */ - #if !defined(__STRICT_ANSI__) || defined(__KERNEL__) # define __BYTEORDER_HAS_U64__ # define __SWAB_64_THRU_32__