public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/9] GCC4.6: Use dst instead of l2srbar in cpu_early_init.c
Date: Tue, 25 Oct 2011 11:37:39 +0200	[thread overview]
Message-ID: <1319535462-20693-8-git-send-email-marek.vasut@gmail.com> (raw)
In-Reply-To: <1319535462-20693-1-git-send-email-marek.vasut@gmail.com>

cpu_init_early.c: In function 'cpu_init_early_f':
cpu_init_early.c:74: warning: 'l2srbar' may be used uninitialized in this
function

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
---
 arch/powerpc/cpu/mpc85xx/cpu_init_early.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
index 4ef3c9a..091af7c 100644
--- a/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
+++ b/arch/powerpc/cpu/mpc85xx/cpu_init_early.c
@@ -71,7 +71,7 @@ void cpu_init_early_f(void)
 #endif
 #if defined(CONFIG_SYS_FSL_ERRATUM_IFC_A003399) && !defined(CONFIG_SYS_RAMBOOT)
 	ccsr_l2cache_t *l2cache = (void *)CONFIG_SYS_MPC85xx_L2_ADDR;
-	u32  *l2srbar, *dst, *src;
+	u32  *dst, *src;
 	void (*setup_ifc_sram)(void);
 #endif
 
@@ -137,7 +137,7 @@ void cpu_init_early_f(void)
 	dst = (u32 *) SRAM_BASE_ADDR;
 	src = (u32 *) setup_ifc;
 	for (i = 0; i < 1024; i++)
-		*l2srbar++ = *src++;
+		*dst++ = *src++;
 
 	setup_ifc_sram();
 
-- 
1.7.6.3

  parent reply	other threads:[~2011-10-25  9:37 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25  9:37 [U-Boot] [PATCH 0/9] CLEANUP: Cleanup of arch/powerpc/ directory Marek Vasut
2011-10-25  9:37 ` [U-Boot] [PATCH 1/9] PowerPC: Squash warning in mpc512x serial.c Marek Vasut
2011-10-27 21:55   ` Wolfgang Denk
2011-10-25  9:37 ` [U-Boot] [PATCH 2/9] GCC4.6: Squash warnings in denali_data_eye.c Marek Vasut
2011-10-27 21:55   ` Wolfgang Denk
2011-10-25  9:37 ` [U-Boot] [PATCH 3/9] GCC4.6: Squash warnings in denali_spd_ddr2.c Marek Vasut
2011-10-27 21:56   ` Wolfgang Denk
2011-10-25  9:37 ` [U-Boot] [PATCH 4/9] GCC4.6: Squash warnings in 44x_spd_ddr.c Marek Vasut
2011-10-27 21:56   ` Wolfgang Denk
2011-10-25  9:37 ` [U-Boot] [PATCH 5/9] GCC4.6: Squash warnings in 4xx_ibm_ddr2_autocalib.c Marek Vasut
2011-10-27 21:56   ` Wolfgang Denk
2011-10-25  9:37 ` [U-Boot] [PATCH 6/9] GCC4.6: Squash warnings in 4xx_pcie.c Marek Vasut
2011-10-27 21:56   ` Wolfgang Denk
2011-10-25  9:37 ` Marek Vasut [this message]
2011-10-25 13:16   ` [U-Boot] [PATCH 7/9] GCC4.6: Use dst instead of l2srbar in cpu_early_init.c Kumar Gala
2011-10-25 13:25     ` Marek Vasut
2011-10-27 21:56   ` Wolfgang Denk
2011-10-25  9:37 ` [U-Boot] [PATCH 8/9] GCC4.6: Squash warnings in ddr[123]_dimm_params.c Marek Vasut
2011-10-25 13:16   ` Kumar Gala
2011-10-25 19:28     ` Wolfgang Denk
2011-10-27 21:56   ` Wolfgang Denk
2011-10-25  9:37 ` [U-Boot] [PATCH 9/9] GCC4.6: Squash warnings in mpc86xx/interrupts.c Marek Vasut
2011-10-27 21:56   ` Wolfgang Denk
2011-10-25  9:46 ` [U-Boot] [PATCH 0/9] CLEANUP: Cleanup of arch/powerpc/ directory Graeme Russ
2011-10-25 19:16   ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1319535462-20693-8-git-send-email-marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox