* [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c
@ 2009-07-11 18:56 Alessio Centazzo
2009-07-20 8:40 ` Stefan Roese
2009-07-21 5:55 ` Ben Warren
0 siblings, 2 replies; 7+ messages in thread
From: Alessio Centazzo @ 2009-07-11 18:56 UTC (permalink / raw)
To: u-boot
This patch fixes a compilation warning for some Ethernet PHY-less
PPC4xx platforms (440SPE based ones) and a potential compilation
error for 440SP platforms (use of undefined 'ethgroup' variable).
In the original code and in case of 440SPE platforms, 'ethgroup'
is initialized to -1 and never modified. Later in the function,
within an #ifdef statement, an 'if statement' executes code only
if 'ethgroup' is set to 4, therefore it is harmless to avoid
executing the 'if statement' by removing the CONFIG_440SPE from
the affected #ifdefs. In case of 440SP platforms with on-board
Ethernet PHY, 'ethgroup' is undefined but used (there are not such
platforms in the repository yet). All other architectures are not
affected by this change.
Signed-off-by: Alessio Centazzo acpatin at yahoo.com
---
drivers/net/4xx_enet.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c
index 587605d..c020048 100644
--- a/drivers/net/4xx_enet.c
+++ b/drivers/net/4xx_enet.c
@@ -870,7 +870,7 @@ static int ppc_4xx_eth_init (struct eth_device
*dev, bd_t * bis)
defined(CONFIG_405EX)
u32 opbfreq;
sys_info_t sysinfo;
-#if defined(CONFIG_440GX) || defined(CONFIG_440SPE) || \
+#if defined(CONFIG_440GX) || \
defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
defined(CONFIG_405EX)
@@ -1119,7 +1119,6 @@ static int ppc_4xx_eth_init (struct eth_device
*dev, bd_t * bis)
#if defined(CONFIG_440GX) || \
defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
- defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
defined(CONFIG_405EX)
--
1.6.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c
2009-07-11 18:56 [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c Alessio Centazzo
@ 2009-07-20 8:40 ` Stefan Roese
2009-07-21 5:55 ` Ben Warren
1 sibling, 0 replies; 7+ messages in thread
From: Stefan Roese @ 2009-07-20 8:40 UTC (permalink / raw)
To: u-boot
Hi Ben,
On Saturday 11 July 2009 20:56:06 Alessio Centazzo wrote:
> This patch fixes a compilation warning for some Ethernet PHY-less
> PPC4xx platforms (440SPE based ones) and a potential compilation
> error for 440SP platforms (use of undefined 'ethgroup' variable).
> In the original code and in case of 440SPE platforms, 'ethgroup'
> is initialized to -1 and never modified. Later in the function,
> within an #ifdef statement, an 'if statement' executes code only
> if 'ethgroup' is set to 4, therefore it is harmless to avoid
> executing the 'if statement' by removing the CONFIG_440SPE from
> the affected #ifdefs. In case of 440SP platforms with on-board
> Ethernet PHY, 'ethgroup' is undefined but used (there are not such
> platforms in the repository yet). All other architectures are not
> affected by this change.
>
> Signed-off-by: Alessio Centazzo acpatin at yahoo.com
This patch falls into your responsibility now. I have no objections, so:
Acked-by: Stefan Roese <sr@denx.de>
Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c
2009-07-11 18:56 [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c Alessio Centazzo
2009-07-20 8:40 ` Stefan Roese
@ 2009-07-21 5:55 ` Ben Warren
2009-07-21 6:52 ` Stefan Roese
1 sibling, 1 reply; 7+ messages in thread
From: Ben Warren @ 2009-07-21 5:55 UTC (permalink / raw)
To: u-boot
Stefan,
Can I get an ACK from you on this? Sorry if you already did and I missed it.
regards,
Ben
Alessio Centazzo wrote:
> This patch fixes a compilation warning for some Ethernet PHY-less
> PPC4xx platforms (440SPE based ones) and a potential compilation
> error for 440SP platforms (use of undefined 'ethgroup' variable).
> In the original code and in case of 440SPE platforms, 'ethgroup'
> is initialized to -1 and never modified. Later in the function,
> within an #ifdef statement, an 'if statement' executes code only
> if 'ethgroup' is set to 4, therefore it is harmless to avoid
> executing the 'if statement' by removing the CONFIG_440SPE from
> the affected #ifdefs. In case of 440SP platforms with on-board
> Ethernet PHY, 'ethgroup' is undefined but used (there are not such
> platforms in the repository yet). All other architectures are not
> affected by this change.
>
> Signed-off-by: Alessio Centazzo acpatin at yahoo.com
> ---
> drivers/net/4xx_enet.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c
> index 587605d..c020048 100644
> --- a/drivers/net/4xx_enet.c
> +++ b/drivers/net/4xx_enet.c
> @@ -870,7 +870,7 @@ static int ppc_4xx_eth_init (struct eth_device
> *dev, bd_t * bis)
> defined(CONFIG_405EX)
> u32 opbfreq;
> sys_info_t sysinfo;
> -#if defined(CONFIG_440GX) || defined(CONFIG_440SPE) || \
> +#if defined(CONFIG_440GX) || \
> defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
> defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
> defined(CONFIG_405EX)
> @@ -1119,7 +1119,6 @@ static int ppc_4xx_eth_init (struct eth_device
> *dev, bd_t * bis)
>
> #if defined(CONFIG_440GX) || \
> defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
> - defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
> defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
> defined(CONFIG_405EX)
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c
2009-07-21 5:55 ` Ben Warren
@ 2009-07-21 6:52 ` Stefan Roese
2009-07-21 6:54 ` Ben Warren
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Roese @ 2009-07-21 6:52 UTC (permalink / raw)
To: u-boot
Ben,
On Tuesday 21 July 2009 07:55:30 Ben Warren wrote:
> Can I get an ACK from you on this? Sorry if you already did and I missed
> it.
I thought that I already ack'ed it. But hey, I have more than one ;)
Acked-by: Stefan Roese <sr@denx.de>
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c
2009-07-21 6:52 ` Stefan Roese
@ 2009-07-21 6:54 ` Ben Warren
0 siblings, 0 replies; 7+ messages in thread
From: Ben Warren @ 2009-07-21 6:54 UTC (permalink / raw)
To: u-boot
Stefan Roese wrote:
> Ben,
>
> On Tuesday 21 July 2009 07:55:30 Ben Warren wrote:
>
>> Can I get an ACK from you on this? Sorry if you already did and I missed
>> it.
>>
>
> I thought that I already ack'ed it. But hey, I have more than one ;)
>
>
You probably did, but it got lost somewhere in my mountain of e-mails.
thanks,
Ben
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c
@ 2009-07-01 3:43 Alessio Centazzo
2009-07-01 7:21 ` Stefan Roese
0 siblings, 1 reply; 7+ messages in thread
From: Alessio Centazzo @ 2009-07-01 3:43 UTC (permalink / raw)
To: u-boot
This patch fixes a compilation warning for some Ethernet PHY-less
PPC4xx platforms (440SPE based ones) and a potential compilation
error for 440SP platforms (use of undefined 'ethgroup' variable).
In the original code and in case of 440SPE platforms, 'ethgroup'
is initialized to -1 and never modified. Later in the function,
within an #ifdef statement, an 'if statement' executes code only
if 'ethgroup' is set to 4, therefore it is harmless to avoid
executing the 'if statement' by removing the CONFIG_440SPE from
the affected #ifdefs. In case of 440SP platforms with on-board
Ethernet PHY, 'ethgroup' is undefined but used (there are not such
platforms in the repository yet). All other architectures are not
affected by this change. This is the current warning message with
a Ethernet PHY-less 440SPE platform build (there is not such
platform in the repository yet):
4xx_enet.c: In function 'ppc_4xx_eth_init':
4xx_enet.c:880: warning: unused variable 'ethgroup'
Signed-off-by: Alessio Centazzo acpatin at yahoo.com
---
drivers/net/4xx_enet.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c
index 587605d..c020048 100644
--- a/drivers/net/4xx_enet.c
+++ b/drivers/net/4xx_enet.c
@@ -870,7 +870,7 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis)
defined(CONFIG_405EX)
u32 opbfreq;
sys_info_t sysinfo;
-#if defined(CONFIG_440GX) || defined(CONFIG_440SPE) || \
+#if defined(CONFIG_440GX) || \
defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
defined(CONFIG_405EX)
@@ -1119,7 +1119,6 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis)
#if defined(CONFIG_440GX) || \
defined(CONFIG_440EPX) || defined(CONFIG_440GRX) || \
- defined(CONFIG_440SP) || defined(CONFIG_440SPE) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT) || \
defined(CONFIG_405EX)
--
1.6.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread* [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c
2009-07-01 3:43 Alessio Centazzo
@ 2009-07-01 7:21 ` Stefan Roese
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Roese @ 2009-07-01 7:21 UTC (permalink / raw)
To: u-boot
On Wednesday 01 July 2009 05:43:53 Alessio Centazzo wrote:
> This patch fixes a compilation warning for some Ethernet PHY-less
> PPC4xx platforms (440SPE based ones) and a potential compilation
> error for 440SP platforms (use of undefined 'ethgroup' variable).
> In the original code and in case of 440SPE platforms, 'ethgroup'
> is initialized to -1 and never modified. Later in the function,
> within an #ifdef statement, an 'if statement' executes code only
> if 'ethgroup' is set to 4, therefore it is harmless to avoid
> executing the 'if statement' by removing the CONFIG_440SPE from
> the affected #ifdefs. In case of 440SP platforms with on-board
> Ethernet PHY, 'ethgroup' is undefined but used (there are not such
> platforms in the repository yet). All other architectures are not
> affected by this change. This is the current warning message with
> a Ethernet PHY-less 440SPE platform build (there is not such
> platform in the repository yet):
>
> 4xx_enet.c: In function 'ppc_4xx_eth_init':
> 4xx_enet.c:880: warning: unused variable 'ethgroup'
Same issue here. Still doesn't apply. Most like again a whitespace issue (tabs
vs spaces). Please fix and resubmit.
Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-07-21 6:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-11 18:56 [U-Boot] [PATCH] ppc4xx: Fixed compilation warning in 4xx_enet.c Alessio Centazzo
2009-07-20 8:40 ` Stefan Roese
2009-07-21 5:55 ` Ben Warren
2009-07-21 6:52 ` Stefan Roese
2009-07-21 6:54 ` Ben Warren
-- strict thread matches above, loose matches on Subject: below --
2009-07-01 3:43 Alessio Centazzo
2009-07-01 7:21 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox