From patchwork Wed Feb 27 01:36:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Phillips X-Patchwork-Id: 2191771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 17721DF215 for ; Wed, 27 Feb 2013 01:42:40 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UAW0N-0004rN-64; Wed, 27 Feb 2013 01:40:24 +0000 Received: from am1ehsobe005.messaging.microsoft.com ([213.199.154.208] helo=am1outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UAW08-0004mI-V0 for linux-arm-kernel@lists.infradead.org; Wed, 27 Feb 2013 01:40:10 +0000 Received: from mail8-am1-R.bigfish.com (10.3.201.228) by AM1EHSOBE019.bigfish.com (10.3.207.141) with Microsoft SMTP Server id 14.1.225.23; Wed, 27 Feb 2013 01:40:00 +0000 Received: from mail8-am1 (localhost [127.0.0.1]) by mail8-am1-R.bigfish.com (Postfix) with ESMTP id 9163E1C039C; Wed, 27 Feb 2013 01:40:00 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1155h) Received: from mail8-am1 (localhost.localdomain [127.0.0.1]) by mail8-am1 (MessageSwitch) id 1361929198361211_31372; Wed, 27 Feb 2013 01:39:58 +0000 (UTC) Received: from AM1EHSMHS002.bigfish.com (unknown [10.3.201.244]) by mail8-am1.bigfish.com (Postfix) with ESMTP id 4AE8B2C0107; Wed, 27 Feb 2013 01:39:58 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS002.bigfish.com (10.3.207.102) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 27 Feb 2013 01:39:56 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.2.328.11; Wed, 27 Feb 2013 01:39:26 +0000 Received: from x9.am.freescale.net (x9.am.freescale.net [10.82.120.9]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id r1R1dQjE011826; Tue, 26 Feb 2013 18:39:31 -0700 From: Kim Phillips To: Grant Likely , Rob Herring , Russell King Subject: [PATCH 3/3] ARM: zImage: sparse fixes Date: Tue, 26 Feb 2013 19:36:15 -0600 Message-ID: <1361928975-29395-3-git-send-email-kim.phillips@freescale.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1361928975-29395-1-git-send-email-kim.phillips@freescale.com> References: <1361928975-29395-1-git-send-email-kim.phillips@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130226_204009_244118_0699E479 X-CRM114-Status: GOOD ( 11.40 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [213.199.154.208 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas Pitre X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32 arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32 arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32 arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32 arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32 arch/arm/boot/compressed/atags_to_fdt.c:107:34: warning: cast to restricted __be32 arch/arm/boot/compressed/atags_to_fdt.c:140:54: warning: incorrect type in assignment (different base types) arch/arm/boot/compressed/atags_to_fdt.c:140:54: expected unsigned int [unsigned] arch/arm/boot/compressed/atags_to_fdt.c:140:54: got restricted __be32 [usertype] arch/arm/boot/compressed/atags_to_fdt.c:141:54: warning: incorrect type in assignment (different base types) arch/arm/boot/compressed/atags_to_fdt.c:141:54: expected unsigned int [unsigned] arch/arm/boot/compressed/atags_to_fdt.c:141:54: got restricted __be32 [usertype] Signed-off-by: Kim Phillips --- arch/arm/boot/compressed/atags_to_fdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/compressed/atags_to_fdt.c b/arch/arm/boot/compressed/atags_to_fdt.c index aabc02a..b7c4846 100644 --- a/arch/arm/boot/compressed/atags_to_fdt.c +++ b/arch/arm/boot/compressed/atags_to_fdt.c @@ -16,7 +16,7 @@ static int node_offset(void *fdt, const char *node_path) } static int setprop(void *fdt, const char *node_path, const char *property, - uint32_t *val_array, int size) + fdt32_t *val_array, int size) { int offset = node_offset(fdt, node_path); if (offset < 0) @@ -95,7 +95,7 @@ static void merge_fdt_bootargs(void *fdt, const char *fdt_cmdline) int atags_to_fdt(void *atag_list, void *fdt, int total_space) { struct tag *atag = atag_list; - uint32_t mem_reg_property[2 * NR_BANKS]; + fdt32_t mem_reg_property[2 * NR_BANKS]; int memcount = 0; int ret; @@ -104,7 +104,7 @@ int atags_to_fdt(void *atag_list, void *fdt, int total_space) return 1; /* if we get a DTB here we're done already */ - if (*(u32 *)atag_list == fdt32_to_cpu(FDT_MAGIC)) + if (*(fdt32_t *)atag_list == cpu_to_fdt32(FDT_MAGIC)) return 0; /* validate the ATAG */