public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram - fix gcc 4.6 compiler warning
@ 2011-11-16  8:59 Kim Phillips
  2011-11-16  8:59 ` [U-Boot] [PATCH 2/3] mpc83xx: mpc8360emds " Kim Phillips
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Kim Phillips @ 2011-11-16  8:59 UTC (permalink / raw)
  To: u-boot

Configuring for sbc8349 board...
spd_sdram.c: In function 'spd_sdram':
spd_sdram.c:152:41: warning: variable 'trfc_high' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
---
 arch/powerpc/cpu/mpc83xx/spd_sdram.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/cpu/mpc83xx/spd_sdram.c b/arch/powerpc/cpu/mpc83xx/spd_sdram.c
index 3855bfd..04d519a 100644
--- a/arch/powerpc/cpu/mpc83xx/spd_sdram.c
+++ b/arch/powerpc/cpu/mpc83xx/spd_sdram.c
@@ -149,7 +149,7 @@ long int spd_sdram()
 	unsigned int memsize;
 	unsigned int law_size;
 	unsigned char caslat, caslat_ctrl;
-	unsigned int trfc, trfc_clk, trfc_low, trfc_high;
+	unsigned int trfc, trfc_clk, trfc_low;
 	unsigned int trcd_clk, trtp_clk;
 	unsigned char cke_min_clk;
 	unsigned char add_lat, wr_lat;
@@ -542,7 +542,6 @@ long int spd_sdram()
 	 * so preadjust it down 8 first before splitting it up.
 	 */
 	trfc_low = (trfc_clk - 8) & 0xf;
-	trfc_high = ((trfc_clk - 8) >> 4) & 0x3;
 
 	ddr->timing_cfg_1 =
 	    (((picos_to_clk(spd.trp * 250) & 0x07) << 28 ) |	/* PRETOACT */
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 2/3] mpc83xx: mpc8360emds - fix gcc 4.6 compiler warning
  2011-11-16  8:59 [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram - fix gcc 4.6 compiler warning Kim Phillips
@ 2011-11-16  8:59 ` Kim Phillips
  2011-11-16 20:41   ` Wolfgang Denk
  2011-11-16  8:59 ` [U-Boot] [PATCH 3/3] mpc83xx: km83xx_i2c " Kim Phillips
  2011-11-16 20:40 ` [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram " Wolfgang Denk
  2 siblings, 1 reply; 7+ messages in thread
From: Kim Phillips @ 2011-11-16  8:59 UTC (permalink / raw)
  To: u-boot

Configuring for MPC8360EMDS_66_HOST_33 - Board: MPC8360EMDS, Options: CLKIN_66MHZ,PCI,PCI_33M,PQ_MDS_PIB=1
mpc8360emds.c: In function 'board_eth_init':
mpc8360emds.c:178:12: warning: array subscript is above array bounds [-Warray-bounds]

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
---
 board/freescale/mpc8360emds/mpc8360emds.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/board/freescale/mpc8360emds/mpc8360emds.c b/board/freescale/mpc8360emds/mpc8360emds.c
index be76774..bdd1293 100644
--- a/board/freescale/mpc8360emds/mpc8360emds.c
+++ b/board/freescale/mpc8360emds/mpc8360emds.c
@@ -172,10 +172,11 @@ int board_eth_init(bd_t *bd)
 	if (board_handle_erratum2()) {
 		int i;
 
-		for (i = 0; i < ARRAY_SIZE(uec_info); i++)
+		for (i = 0; i < ARRAY_SIZE(uec_info); i++) {
 			uec_info[i].enet_interface_type =
 				PHY_INTERFACE_MODE_RGMII_RXID;
 			uec_info[i].speed = SPEED_1000;
+		}
 	}
 	return uec_eth_init(bd, uec_info, ARRAY_SIZE(uec_info));
 }
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 3/3] mpc83xx: km83xx_i2c - fix gcc 4.6 compiler warning
  2011-11-16  8:59 [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram - fix gcc 4.6 compiler warning Kim Phillips
  2011-11-16  8:59 ` [U-Boot] [PATCH 2/3] mpc83xx: mpc8360emds " Kim Phillips
@ 2011-11-16  8:59 ` Kim Phillips
  2011-11-16  9:09   ` Heiko Schocher
  2011-11-16 20:41   ` Wolfgang Denk
  2011-11-16 20:40 ` [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram " Wolfgang Denk
  2 siblings, 2 replies; 7+ messages in thread
From: Kim Phillips @ 2011-11-16  8:59 UTC (permalink / raw)
  To: u-boot

Configuring for kmeter1 board...
km83xx_i2c.c: In function 'i2c_make_abort':
km83xx_i2c.c:44:8: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
---
 board/keymile/km83xx/km83xx_i2c.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/board/keymile/km83xx/km83xx_i2c.c b/board/keymile/km83xx/km83xx_i2c.c
index be17775..8df92d8 100644
--- a/board/keymile/km83xx/km83xx_i2c.c
+++ b/board/keymile/km83xx/km83xx_i2c.c
@@ -41,7 +41,6 @@ int i2c_make_abort(void)
 {
 	struct fsl_i2c *dev;
 	dev = (struct fsl_i2c *) (CONFIG_SYS_IMMR + CONFIG_SYS_I2C_OFFSET);
-	uchar	dummy;
 	uchar   last;
 	int     nbr_read = 0;
 	int     i = 0;
@@ -52,7 +51,7 @@ int i2c_make_abort(void)
 	udelay(DELAY_ABORT_SEQ);
 	out_8(&dev->cr, (I2C_CR_MEN | I2C_CR_MSTA));
 	udelay(DELAY_ABORT_SEQ);
-	dummy = in_8(&dev->dr);
+	in_8(&dev->dr);
 	udelay(DELAY_ABORT_SEQ);
 	last = in_8(&dev->dr);
 	nbr_read++;
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 3/3] mpc83xx: km83xx_i2c - fix gcc 4.6 compiler warning
  2011-11-16  8:59 ` [U-Boot] [PATCH 3/3] mpc83xx: km83xx_i2c " Kim Phillips
@ 2011-11-16  9:09   ` Heiko Schocher
  2011-11-16 20:41   ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Heiko Schocher @ 2011-11-16  9:09 UTC (permalink / raw)
  To: u-boot

Hello Kim,

Kim Phillips wrote:
> Configuring for kmeter1 board...
> km83xx_i2c.c: In function 'i2c_make_abort':
> km83xx_i2c.c:44:8: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]
> 
> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
> ---
>  board/keymile/km83xx/km83xx_i2c.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Thanks for fixing,

Acked-by: Heiko Schocher <hs@denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram - fix gcc 4.6 compiler warning
  2011-11-16  8:59 [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram - fix gcc 4.6 compiler warning Kim Phillips
  2011-11-16  8:59 ` [U-Boot] [PATCH 2/3] mpc83xx: mpc8360emds " Kim Phillips
  2011-11-16  8:59 ` [U-Boot] [PATCH 3/3] mpc83xx: km83xx_i2c " Kim Phillips
@ 2011-11-16 20:40 ` Wolfgang Denk
  2 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2011-11-16 20:40 UTC (permalink / raw)
  To: u-boot

Dear Kim Phillips,

In message <1321433993-2488-1-git-send-email-kim.phillips@freescale.com> you wrote:
> Configuring for sbc8349 board...
> spd_sdram.c: In function 'spd_sdram':
> spd_sdram.c:152:41: warning: variable 'trfc_high' set but not used [-Wunused-but-set-variable]
> 
> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
> ---
>  arch/powerpc/cpu/mpc83xx/spd_sdram.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The one who says it cannot be done should never interrupt the one who
is doing it.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 2/3] mpc83xx: mpc8360emds - fix gcc 4.6 compiler warning
  2011-11-16  8:59 ` [U-Boot] [PATCH 2/3] mpc83xx: mpc8360emds " Kim Phillips
@ 2011-11-16 20:41   ` Wolfgang Denk
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2011-11-16 20:41 UTC (permalink / raw)
  To: u-boot

Dear Kim Phillips,

In message <1321433993-2488-2-git-send-email-kim.phillips@freescale.com> you wrote:
> Configuring for MPC8360EMDS_66_HOST_33 - Board: MPC8360EMDS, Options: CLKIN_66MHZ,PCI,PCI_33M,PQ_MDS_PIB=1
> mpc8360emds.c: In function 'board_eth_init':
> mpc8360emds.c:178:12: warning: array subscript is above array bounds [-Warray-bounds]
> 
> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
> ---
>  board/freescale/mpc8360emds/mpc8360emds.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/board/freescale/mpc8360emds/mpc8360emds.c b/board/freescale/mpc8360emds/mpc8360emds.c
> index be76774..bdd1293 100644
> --- a/board/freescale/mpc8360emds/mpc8360emds.c
> +++ b/board/freescale/mpc8360emds/mpc8360emds.c
> @@ -172,10 +172,11 @@ int board_eth_init(bd_t *bd)
>  	if (board_handle_erratum2()) {
>  		int i;
>  
> -		for (i = 0; i < ARRAY_SIZE(uec_info); i++)
> +		for (i = 0; i < ARRAY_SIZE(uec_info); i++) {
>  			uec_info[i].enet_interface_type =
>  				PHY_INTERFACE_MODE_RGMII_RXID;
>  			uec_info[i].speed = SPEED_1000;
> +		}
>  	}
>  	return uec_eth_init(bd, uec_info, ARRAY_SIZE(uec_info));

Seems we caught a real error here?  Great!  Thanks!


Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There is a biblical analogy I'd like to draw here.   Casts are to C++
Programmers what the apple was to Eve.         - Scott Douglas Meyers

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 3/3] mpc83xx: km83xx_i2c - fix gcc 4.6 compiler warning
  2011-11-16  8:59 ` [U-Boot] [PATCH 3/3] mpc83xx: km83xx_i2c " Kim Phillips
  2011-11-16  9:09   ` Heiko Schocher
@ 2011-11-16 20:41   ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2011-11-16 20:41 UTC (permalink / raw)
  To: u-boot

Dear Kim Phillips,

In message <1321433993-2488-3-git-send-email-kim.phillips@freescale.com> you wrote:
> Configuring for kmeter1 board...
> km83xx_i2c.c: In function 'i2c_make_abort':
> km83xx_i2c.c:44:8: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]
> 
> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
> ---
>  board/keymile/km83xx/km83xx_i2c.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
What is mind?  No matter.  What is matter?  Never mind.
                                      -- Thomas Hewitt Key, 1799-1875

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-11-16 20:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-16  8:59 [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram - fix gcc 4.6 compiler warning Kim Phillips
2011-11-16  8:59 ` [U-Boot] [PATCH 2/3] mpc83xx: mpc8360emds " Kim Phillips
2011-11-16 20:41   ` Wolfgang Denk
2011-11-16  8:59 ` [U-Boot] [PATCH 3/3] mpc83xx: km83xx_i2c " Kim Phillips
2011-11-16  9:09   ` Heiko Schocher
2011-11-16 20:41   ` Wolfgang Denk
2011-11-16 20:40 ` [U-Boot] [PATCH 1/3] mpc83xx: spd_sdram " Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox