net: sh_eth: fix build error when CONFIG_CPU_SH7757 is set
Shimoda
This patch fixes the following build error when CONFIG_CPU_SH7757 is set:
In file included from sh_eth.c:32:
sh_eth.h:466: error: expected identifier before ?}? token sh_eth.c: In function ?sh_eth_config?:
sh_eth.c:380: error: ?ECSIPR_BRCRXIP? undeclared (first use in this function) sh_eth.c:380: error: (Each undeclared identifier is reported only once sh_eth.c:380: error: for each function it appears in.) sh_eth.c:380: error: ?ECSIPR_PSRTOIP? undeclared (first use in this function) sh_eth.c:380: error: ?ECSIPR_LCHNGIP? undeclared (first use in this function) sh_eth.c:380: error: ?ECSIPR_MPDIP? undeclared (first use in this function) sh_eth.c:380: error: ?ECSIPR_ICDIP? undeclared (first use in this function) make[1]: *** [sh_eth.o] Error 1
--- drivers/net/sh_eth.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/net/sh_eth.h +3 -1
@@ -452,9 +452,11 @@ enum ECSR_STATUS_BIT {/* ECSIPR */ enum ECSIPR_STATUS_MASK_BIT { -#if defined(CONFIG_CPU_SH7724 ) +#if defined(CONFIG_CPU_SH7724 ) || defined(CONFIG_CPU_SH7757 ) +ECSIPR_BRCRXIP =0x20 ,ECSIPR_PSRTOIP =0x10 ,ECSIPR_LCHNGIP =0x04 , +ECSIPR_MPDIP =0x02 ,ECSIPR_ICDIP =0x01 ,#elif defined(CONFIG_CPU_SH7763 ) || defined(CONFIG_CPU_SH7734 )ECSIPR_PSRTOIP =0x10 ,
Signature · 1 line
1.7.1
Hi,
This patch already send to this ML
http://lists.denx.de/pipermail/u-boot/2012-June/125789.html
Best regards,
Nobuhiro
2012/6/21 Shimoda, Yoshihiro <[email protected]>:
Quoted 42 lines
This patch fixes the following build error when
CONFIG_CPU_SH7757is set:In file included from sh_eth.c:32:
sh_eth.h:466: error: expected identifier before ?}? tokensh_eth.c: In function ?sh_eth_config?:
sh_eth.c:380: error: ?ECSIPR_BRCRXIP? undeclared (first use in this function) sh_eth.c:380: error: (Each undeclared identifier is reported only once sh_eth.c:380: error: for each function it appears in.) sh_eth.c:380: error: ?ECSIPR_PSRTOIP? undeclared (first use in this function) sh_eth.c:380: error: ?ECSIPR_LCHNGIP? undeclared (first use in this function) sh_eth.c:380: error: ?ECSIPR_MPDIP? undeclared (first use in this function) sh_eth.c:380: error: ?ECSIPR_ICDIP? undeclared (first use in this function) make[1]: *** [sh_eth.o] Error 1Signed-off-by Yoshihiro Shimoda <[email protected]>---
?drivers/net/sh_eth.h | ? ?4 +++-
?1 files changed, 3 insertions(+), 1 deletions(-)drivers/net/sh_eth.h +0
-0@@ -452,9 +452,11 @@ enum ECSR_STATUS_BIT {?/* ECSIPR */
?enumECSIPR_STATUS_MASK_BIT{drivers/net/sh_eth.h +2
-1-#if defined(CONFIG_CPU_SH7724 ) +#if defined(CONFIG_CPU_SH7724 ) || defined(CONFIG_CPU_SH7757 ) + ? ? ? ECSIPR_BRCRXIP = 0x20,? ? ? ?ECSIPR_PSRTOIP =
0x10,
? ? ? ?ECSIPR_LCHNGIP =0x04,
+ ? ? ?ECSIPR_MPDIP=0x02,
? ? ? ?ECSIPR_ICDIP =0x01,
?#elifdefined(CONFIG_CPU_SH7763)||defined(CONFIG_CPU_SH7734)? ? ? ?ECSIPR_PSRTOIP =0x10,
--
1.7.1
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 1 line
Nobuhiro Iwamatsu
Shimoda
Hi,
Quoted 4 lines · Nobuhiro Iwamatsu
Hi,
This patch already send to this ML
http://lists.denx.de/pipermail/u-boot/2012-June/125789.html
Thank you for the information.
I will test the patch.
Best regards,
Yoshihiro Shimoda