From patchwork Sun Nov 21 19:19:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 72453 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 0BEB4B7150 for ; Mon, 22 Nov 2010 06:20:01 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6BB4B28235; Sun, 21 Nov 2010 20:20:00 +0100 (CET) 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 G6OuiW14y99y; Sun, 21 Nov 2010 20:20:00 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6F4E528244; Sun, 21 Nov 2010 20:19:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2235028244 for ; Sun, 21 Nov 2010 20:19:57 +0100 (CET) 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 rNPVtl1gqPJw for ; Sun, 21 Nov 2010 20:19:55 +0100 (CET) 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-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by theia.denx.de (Postfix) with ESMTP id 07A3928235 for ; Sun, 21 Nov 2010 20:19:53 +0100 (CET) Received: by fxm3 with SMTP id 3so4120681fxm.3 for ; Sun, 21 Nov 2010 11:19:52 -0800 (PST) Received: by 10.223.118.136 with SMTP id v8mr2978717faq.90.1290367192766; Sun, 21 Nov 2010 11:19:52 -0800 (PST) Received: from linux.local (p5B040530.dip0.t-ipconnect.de [91.4.5.48]) by mx.google.com with ESMTPS id z25sm1101758fam.18.2010.11.21.11.19.51 (version=SSLv3 cipher=RC4-MD5); Sun, 21 Nov 2010 11:19:52 -0800 (PST) From: dirk.behme@googlemail.com To: u-boot@lists.denx.de Date: Sun, 21 Nov 2010 20:19:34 +0100 Message-Id: <1290367174-380-1-git-send-email-dirk.behme@gmail.com> X-Mailer: git-send-email 1.7.3.2 Subject: [U-Boot] [PATCH] Fix compiler warning in fdt_support.c 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 From: Dirk Behme Fix compiler warning fdt_support.c: In function 'of_bus_default_count_cells': fdt_support.c:957: warning: passing argument 1 of '__swab32p' discards qualifiers from pointer target type fdt_support.c:965: warning: passing argument 1 of '__swab32p' discards qualifiers from pointer target type be32_to_cpup() expects an 'u32 *' while prop is 'const u32 *'. Signed-off-by: Dirk Behme --- Found while building 'omap3_beagle'. common/fdt_support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: u-boot.git/common/fdt_support.c =================================================================== --- u-boot.git.orig/common/fdt_support.c +++ u-boot.git/common/fdt_support.c @@ -954,7 +954,7 @@ static void of_bus_default_count_cells(v if (addrc) { prop = fdt_getprop(blob, parentoffset, "#address-cells", NULL); if (prop) - *addrc = be32_to_cpup(prop); + *addrc = be32_to_cpup((u32 *)prop); else *addrc = 2; } @@ -962,7 +962,7 @@ static void of_bus_default_count_cells(v if (sizec) { prop = fdt_getprop(blob, parentoffset, "#size-cells", NULL); if (prop) - *sizec = be32_to_cpup(prop); + *sizec = be32_to_cpup((u32 *)prop); else *sizec = 1; }