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 9/9] GCC4.6: Squash warnings in mpc86xx/interrupts.c
Date: Tue, 25 Oct 2011 11:37:41 +0200	[thread overview]
Message-ID: <1319535462-20693-10-git-send-email-marek.vasut@gmail.com> (raw)
In-Reply-To: <1319535462-20693-1-git-send-email-marek.vasut@gmail.com>

interrupts.c: In function 'interrupt_init_cpu':
interrupts.c:62: warning: format '%d' expects type 'int', but argument 2 has
type 'long unsigned int'
interrupts.c:69: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'
interrupts.c:72: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'
interrupts.c:75: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'
interrupts.c:79: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'
interrupts.c:83: warning: format '%x' expects type 'unsigned int', but argument
2 has type 'volatile uint *'

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/mpc86xx/interrupts.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/powerpc/cpu/mpc86xx/interrupts.c b/arch/powerpc/cpu/mpc86xx/interrupts.c
index 14821f4..aff1f6d 100644
--- a/arch/powerpc/cpu/mpc86xx/interrupts.c
+++ b/arch/powerpc/cpu/mpc86xx/interrupts.c
@@ -59,28 +59,28 @@ int interrupt_init_cpu(unsigned long *decrementer_count)
 	pic->gcr = MPC86xx_PICGCR_MODE;
 
 	*decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
-	debug("interrupt init: tbclk() = %d MHz, decrementer_count = %ld\n",
+	debug("interrupt init: tbclk() = %ld MHz, decrementer_count = %ld\n",
 	      (get_tbclk() / 1000000),
 	      *decrementer_count);
 
 #ifdef CONFIG_INTERRUPTS
 
 	pic->iivpr1 = 0x810001;	/* 50220 enable mcm interrupts */
-	debug("iivpr1@%x = %x\n", &pic->iivpr1, pic->iivpr1);
+	debug("iivpr1@%p = %x\n", &pic->iivpr1, pic->iivpr1);
 
 	pic->iivpr2 = 0x810002;	/* 50240 enable ddr interrupts */
-	debug("iivpr2@%x = %x\n", &pic->iivpr2, pic->iivpr2);
+	debug("iivpr2@%p = %x\n", &pic->iivpr2, pic->iivpr2);
 
 	pic->iivpr3 = 0x810003;	/* 50260 enable lbc interrupts */
-	debug("iivpr3@%x = %x\n", &pic->iivpr3, pic->iivpr3);
+	debug("iivpr3@%p = %x\n", &pic->iivpr3, pic->iivpr3);
 
 #if defined(CONFIG_PCI1) || defined(CONFIG_PCIE1)
 	pic->iivpr8 = 0x810008;	/* enable pcie1 interrupts */
-	debug("iivpr8@%x = %x\n", &pic->iivpr8, pic->iivpr8);
+	debug("iivpr8@%p = %x\n", &pic->iivpr8, pic->iivpr8);
 #endif
 #if defined(CONFIG_PCI2) || defined(CONFIG_PCIE2)
 	pic->iivpr9 = 0x810009;	/* enable pcie2 interrupts */
-	debug("iivpr9@%x = %x\n", &pic->iivpr9, pic->iivpr9);
+	debug("iivpr9@%p = %x\n", &pic->iivpr9, pic->iivpr9);
 #endif
 
 	pic->ctpr = 0;	/* 40080 clear current task priority register */
-- 
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 ` [U-Boot] [PATCH 7/9] GCC4.6: Use dst instead of l2srbar in cpu_early_init.c Marek Vasut
2011-10-25 13:16   ` 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 ` Marek Vasut [this message]
2011-10-27 21:56   ` [U-Boot] [PATCH 9/9] GCC4.6: Squash warnings in mpc86xx/interrupts.c 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-10-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