public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 02/16] arch/powerpc/cpu/mpc85xx/tlb.c: Fix GCC 4.6 build warning
Date: Wed,  9 Nov 2011 10:29:33 -0600	[thread overview]
Message-ID: <1320856180-8372-3-git-send-email-galak@kernel.crashing.org> (raw)
In-Reply-To: <1320856180-8372-2-git-send-email-galak@kernel.crashing.org>

Fix:

tlb.c: In function 'disable_tlb':
tlb.c:175:34: warning: variable '_mas7' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/cpu/mpc85xx/tlb.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/cpu/mpc85xx/tlb.c b/arch/powerpc/cpu/mpc85xx/tlb.c
index 80ad04a..929f6a6 100644
--- a/arch/powerpc/cpu/mpc85xx/tlb.c
+++ b/arch/powerpc/cpu/mpc85xx/tlb.c
@@ -172,7 +172,7 @@ void set_tlb(u8 tlb, u32 epn, u64 rpn,
 
 void disable_tlb(u8 esel)
 {
-	u32 _mas0, _mas1, _mas2, _mas3, _mas7;
+	u32 _mas0, _mas1, _mas2, _mas3;
 
 	free_tlb_cam(esel);
 
@@ -180,14 +180,13 @@ void disable_tlb(u8 esel)
 	_mas1 = 0;
 	_mas2 = 0;
 	_mas3 = 0;
-	_mas7 = 0;
 
 	mtspr(MAS0, _mas0);
 	mtspr(MAS1, _mas1);
 	mtspr(MAS2, _mas2);
 	mtspr(MAS3, _mas3);
 #ifdef CONFIG_ENABLE_36BIT_PHYS
-	mtspr(MAS7, _mas7);
+	mtspr(MAS7, 0);
 #endif
 	asm volatile("isync;msync;tlbwe;isync");
 
-- 
1.7.3.4

  reply	other threads:[~2011-11-09 16:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-09 16:29 [U-Boot] [PATCH 00/16] Fix GCC 4.6 build warning related to MPC85xx builds Kumar Gala
2011-11-09 16:29 ` [U-Boot] [PATCH 01/16] arch/powerpc/cpu/mpc85xx/cpu_init.c: Fix GCC 4.6 build warning Kumar Gala
2011-11-09 16:29   ` Kumar Gala [this message]
2011-11-09 16:29     ` [U-Boot] [PATCH 03/16] arch/powerpc/cpu/mpc8xxx/fsl_lbc.c: " Kumar Gala
2011-11-09 16:29       ` [U-Boot] [PATCH 04/16] board/freescale/common/cds_pci_ft.c: " Kumar Gala
2011-11-09 16:29         ` [U-Boot] [PATCH 05/16] board/freescale/common/pixis.c: " Kumar Gala
2011-11-09 16:29           ` [U-Boot] [PATCH 06/16] board/freescale/mpc8548cds/mpc8548cds.c: " Kumar Gala
2011-11-09 16:29             ` [U-Boot] [PATCH 07/16] board/freescale/mpc8568mds/mpc8568mds.c: " Kumar Gala
2011-11-09 16:29               ` [U-Boot] [PATCH 08/16] board/freescale/mpc8569mds/mpc8569mds.c: " Kumar Gala
2011-11-09 16:29                 ` [U-Boot] [PATCH 09/16] board/sbc8548/sbc8548.c: " Kumar Gala
2011-11-11 13:34 ` [U-Boot] [PATCH 00/16] Fix GCC 4.6 build warning related to MPC85xx builds Kumar Gala

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=1320856180-8372-3-git-send-email-galak@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --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