From patchwork Mon Feb 29 11:50:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 63197 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1197361lbc; Mon, 29 Feb 2016 03:50:10 -0800 (PST) X-Received: by 10.194.19.5 with SMTP id a5mr14726431wje.46.1456746610299; Mon, 29 Feb 2016 03:50:10 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id j16si4747155wmd.103.2016.02.29.03.50.10; Mon, 29 Feb 2016 03:50:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B1835A75D2; Mon, 29 Feb 2016 12:50:09 +0100 (CET) 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 XrqGq5Zz1CU6; Mon, 29 Feb 2016 12:50:09 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D03F9A74C3; Mon, 29 Feb 2016 12:50:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4A617A75C6 for ; Mon, 29 Feb 2016 12:50:06 +0100 (CET) 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 RamPAxZKHWn7 for ; Mon, 29 Feb 2016 12:50:06 +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 conuserg009-v.nifty.com (conuserg009.nifty.com [202.248.44.35]) by theia.denx.de (Postfix) with ESMTPS id 89A6AA74C3 for ; Mon, 29 Feb 2016 12:50:01 +0100 (CET) Received: from beagle.diag.org (p14090-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.90]) (authenticated) by conuserg009-v.nifty.com with ESMTP id u1TBnn3n010456; Mon, 29 Feb 2016 20:49:50 +0900 X-Nifty-SrcIP: [153.142.97.90] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Mon, 29 Feb 2016 20:50:34 +0900 Message-Id: <1456746634-31118-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Subject: [U-Boot] [PATCH] spl_nor: fix warning when compiled for 64bit target X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Fix "warning: cast to pointer from integer of different size". Signed-off-by: Masahiro Yamada --- common/spl/spl_nor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index e08afe2..d0bd0b0 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -59,7 +59,7 @@ int spl_nor_load_image(void) spl_parse_image_header( (const struct image_header *)CONFIG_SYS_UBOOT_BASE); - memcpy((void *)spl_image.load_addr, + memcpy((void *)(unsigned long)spl_image.load_addr, (void *)(CONFIG_SYS_UBOOT_BASE + sizeof(struct image_header)), spl_image.size);