From patchwork Tue Oct 18 10:25:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 120405 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 02CFB1007D1 for ; Tue, 18 Oct 2011 21:25:42 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DD37329217; Tue, 18 Oct 2011 12:25:38 +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 WYa654wUayaw; Tue, 18 Oct 2011 12:25:38 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EC4FF29218; Tue, 18 Oct 2011 12:25:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E675329218 for ; Tue, 18 Oct 2011 12:25:34 +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 pruWMQ+aBbfs for ; Tue, 18 Oct 2011 12:25:34 +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-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 2B98329217 for ; Tue, 18 Oct 2011 12:25:32 +0200 (CEST) Received: by bkas6 with SMTP id s6so588313bka.3 for ; Tue, 18 Oct 2011 03:25:32 -0700 (PDT) Received: by 10.223.17.11 with SMTP id q11mr3231671faa.13.1318933532006; Tue, 18 Oct 2011 03:25:32 -0700 (PDT) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id b16sm2845547fao.7.2011.10.18.03.25.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Oct 2011 03:25:31 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Tue, 18 Oct 2011 12:25:30 +0200 Message-Id: <1318933530-18161-1-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 Subject: [U-Boot] [PATCH v2] microblaze: Fix strict-aliasign rules for in_be32 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 readl should work with unsigned int instead of unsigned long. Signed-off-by: Michal Simek --- v2: Fix coding style issue. --- arch/microblaze/include/asm/io.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index 7e190d1..584cbce 100644 --- a/arch/microblaze/include/asm/io.h +++ b/arch/microblaze/include/asm/io.h @@ -25,7 +25,7 @@ #define readw(addr) \ ({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; }) #define readl(addr) \ - ({ unsigned long __v = (*(volatile unsigned long *) (addr)); __v; }) + ({ unsigned int __v = (*(volatile unsigned int *) (addr)); __v; }) #define writeb(b, addr) \ (void)((*(volatile unsigned char *) (addr)) = (b))