CLEANUP: Cleanup of board/ directory
cover CLEANUP: Cleanup of board/ directory
This series fixes the warnings generated by new debug() macro implementation, which will be merged after this series. This series fixes the problems before the macro is reworked to avoid smooth transition. Most of the problems fixed by this series are printf() formating related problems.
Marek Vasut (10):
GCC4.6: Squash warning in mpc5121ads.c GCC4.6: Squash warnings in diu.c
GCC4.6: Squash warnings in mpc8610hpcd.c GCC4.6: Squash warnings in tqm834x.c GCC4.6: Squash warning in cmd_pmc440.c GCC4.6: Squash warnings in pmc405de.c GCC4.6: Squash warnings in r360mpi/flash.c GCC4.6: Squash warnings in PPChameleonEVB/flash.c GCC4.6: Squash error in cpc45/pd67290.c GCC4.6: Add macros to mv_gen_reg.h
board/Marvell/include/mv_gen_reg.h | 8 ++++++++ board/cpc45/pd67290.c | 6 +----- board/dave/PPChameleonEVB/flash.c | 3 ++- board/esd/pmc405de/pmc405de.c | 2 +- board/esd/pmc440/cmd_pmc440.c | 2 +- board/freescale/mpc5121ads/mpc5121ads.c | 4 ++-- board/freescale/mpc8610hpcd/mpc8610hpcd.c | 4 ++-- board/freescale/p1022ds/diu.c | 2 +- board/r360mpi/flash.c | 4 ++-- board/tqc/tqm834x/tqm834x.c | 6 +++--- 10 files changed, 23 insertions(+), 18 deletions(-)
Signature · 1 line
1.7.6.3
PATCH 1/10 GCC4.6: Squash warning in mpc5121ads.c
mpc5121ads.c: In function 'misc_init_r':
mpc5121ads.c:256: warning: format '%02lx' expects type 'long unsigned int', but argument 2 has type 'int'
mpc5121ads.c:263: warning: format '%02lx' expects type 'long unsigned int', but argument 2 has type 'int'
--- board/freescale/mpc5121ads/mpc5121ads.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
board/freescale/mpc5121ads/mpc5121ads.c +2 -2
@@ -253,14 +253,14 @@ int misc_init_r(void)/* Verify if enabled */ tmp_val =0 ;i2c_read (0x38 ,0x08 ,1 , &tmp_val,sizeof (tmp_val)); -debug ("DVI Encoder Read: 0x%02lx\n" , tmp_val); +debug ("DVI Encoder Read: 0x%02x\n" , tmp_val); tmp_val =0x10 ;i2c_write (0x38 ,0x0A ,1 , &tmp_val,sizeof (tmp_val));/* Verify if enabled */ tmp_val =0 ;i2c_read (0x38 ,0x0A ,1 , &tmp_val,sizeof (tmp_val)); -debug ("DVI Encoder Read: 0x%02lx\n" , tmp_val); +debug ("DVI Encoder Read: 0x%02x\n" , tmp_val);return 0 ; }
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 1/10 GCC4.6: Squash warning in mpc5121ads.c
Dear Marek Vasut,
Quoted 6 lines · In message <[email protected]> you wrote:
mpc5121ads.c: In function 'misc_init_r':
mpc5121ads.c:256: warning: format '%02lx' expects type 'long unsigned int', but argument 2 has type 'int'
mpc5121ads.c:263: warning: format '%02lx' expects type 'long unsigned int', but argument 2 has type 'int'
Quoted 7 lines
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/freescale/mpc5121ads/mpc5121ads.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
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 I have often regretted my speech, never my silence.
PATCH 2/10 GCC4.6: Squash warnings in diu.c
In reply to Marek Vasutdiu.c: In function 'diu_set_pixel_clock':
diu.c:77: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'u32'
--- board/freescale/p1022ds/diu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
board/freescale/p1022ds/diu.c +1 -1
@@ -74,7 +74,7 @@ void diu_set_pixel_clock(unsigned int pixclock) temp =1000000000 / pixclock; temp *=1000 ; pixval = speed_ccb / temp; -debug ("DIU pixval = %lu\n" , pixval); +debug ("DIU pixval = %u\n" , pixval);/* Modify PXCLK in GUTS CLKDVDR */ temp =in_be32 (&gur->clkdvdr) &0x2000FFFF ;
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 2/10 GCC4.6: Squash warnings in diu.c
Dear Marek Vasut,
Quoted 11 lines · In message <[email protected]> you wrote:
diu.c: In function 'diu_set_pixel_clock':
diu.c:77: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'u32'Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/freescale/p1022ds/diu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
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
"Don't try to outweird me, three-eyes. I get stranger things than you
free with my breakfast cereal."
- Zaphod Beeblebrox in "Hitchhiker's Guide to the Galaxy"PATCH 3/10 GCC4.6: Squash warnings in mpc8610hpcd.c
In reply to Marek Vasutmpc8610hpcd.c: In function 'misc_init_r':
mpc8610hpcd.c:79: warning: format '%02lx' expects type 'long unsigned int', but argument 2 has type 'int'
mpc8610hpcd.c:86: warning: format '%02lx' expects type 'long unsigned int', but argument 2 has type 'int'
--- board/freescale/mpc8610hpcd/mpc8610hpcd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
board/freescale/mpc8610hpcd/mpc8610hpcd.c +2 -2
@@ -76,14 +76,14 @@ int misc_init_r(void)/* Verify if enabled */ tmp_val =0 ;i2c_read (0x38 ,0x08 ,1 , &tmp_val,sizeof (tmp_val)); -debug ("DVI Encoder Read: 0x%02lx\n" ,tmp_val); +debug ("DVI Encoder Read: 0x%02x\n" , tmp_val); tmp_val =0x10 ;i2c_write (0x38 ,0x0A ,1 , &tmp_val,sizeof (tmp_val));/* Verify if enabled */ tmp_val =0 ;i2c_read (0x38 ,0x0A ,1 , &tmp_val,sizeof (tmp_val)); -debug ("DVI Encoder Read: 0x%02lx\n" ,tmp_val); +debug ("DVI Encoder Read: 0x%02x\n" , tmp_val);return 0 ; }
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 3/10 GCC4.6: Squash warnings in mpc8610hpcd.c
Dear Marek Vasut,
Quoted 6 lines · In message <[email protected]> you wrote:
mpc8610hpcd.c: In function 'misc_init_r':
mpc8610hpcd.c:79: warning: format '%02lx' expects type 'long unsigned int', but argument 2 has type 'int'
mpc8610hpcd.c:86: warning: format '%02lx' expects type 'long unsigned int', but argument 2 has type 'int'
Quoted 7 lines
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/freescale/mpc8610hpcd/mpc8610hpcd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
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
"More software projects have gone awry for lack of calendar time than
for all other causes combined."
- Fred Brooks, Jr., _The Mythical Man Month_PATCH 4/10 GCC4.6: Squash warnings in tqm834x.c
In reply to Marek Vasuttqm834x.c: In function 'initdram':
tqm834x.c:126: warning: format '%d' expects type 'int', but argument 3 has type 'long int'tqm834x.c: In function 'set_cs_bounds':
tqm834x.c:336: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'long int'
tqm834x.c:336: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'long int'tqm834x.c: In function 'set_cs_config':
tqm834x.c:354: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'long int'
--- board/tqc/tqm834x/tqm834x.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
board/tqc/tqm834x/tqm834x.c +3 -3
@@ -123,7 +123,7 @@ phys_size_t initdram (int board_type) (long *)(CONFIG_SYS_DDR_BASE + size)); size += bank_size; -debug ("DDR Bank%d size: %d MiB\n\n" , cs, bank_size >>20 ); +debug ("DDR Bank%d size: %ld MiB\n\n" , cs, bank_size >>20 );/* exit if less than one bank */ if (size <DDR_MAX_SIZE_PER_CS )break ;
@@ -333,7 +333,7 @@ static long int get_ddr_bank_size(short cs, long *base)*/ static void set_cs_bounds (short cs,long base,long size) { -debug ("Setting bounds %08x, %08x for cs %d\n" , base, size, cs); +debug ("Setting bounds %08lx, %08lx for cs %d\n" , base, size, cs);if (size ==0 ){ im->ddr.csbnds[cs].csbnds =0x00000000 ; }else {
@@ -351,7 +351,7 @@ static void set_cs_bounds(short cs, long base, long size)*/ static void set_cs_config (short cs,long config) { -debug ("Setting config %08x for cs %d\n" , config, cs); +debug ("Setting config %08lx for cs %d\n" , config, cs); im->ddr.cs_config[cs] = config;SYNC ; }
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 4/10 GCC4.6: Squash warnings in tqm834x.c
Dear Marek Vasut,
Quoted 12 lines · In message <[email protected]> you wrote:
tqm834x.c: In function 'initdram':
tqm834x.c:126: warning: format '%d' expects type 'int', but argument 3 has type 'long int'tqm834x.c: In function 'set_cs_bounds':
tqm834x.c:336: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'long int'
tqm834x.c:336: warning: format '%08x' expects type 'unsigned int', but argument 3 has type 'long int'tqm834x.c: In function 'set_cs_config':
tqm834x.c:354: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'long int'
Quoted 7 lines
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/tqc/tqm834x/tqm834x.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
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 "If it ain't broke, don't fix it." - Bert Lantz
PATCH 5/10 GCC4.6: Squash warning in cmd_pmc440.c
In reply to Marek Vasutcmd_pmc440.c: In function 'do_painit':
cmd_pmc440.c:371: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'phys_size_t'
--- board/esd/pmc440/cmd_pmc440.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
board/esd/pmc440/cmd_pmc440.c +1 -1
@@ -368,7 +368,7 @@ int do_painit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])*/ param = base - (pram <<10 );printf ("PARAM: @%08x\n" , param); -debug ("memsize=0x%08x, base=0x%08x\n" , gd->bd->bi_memsize, base); +debug ("memsize=0x%08x, base=0x%08x\n" , (u32 )gd->bd->bi_memsize, base);/* clear entire PA ram */ memset ((void *)param,0 , (pram <<10 ));
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 5/10 GCC4.6: Squash warning in cmd_pmc440.c
Dear Marek Vasut,
Quoted 11 lines · In message <[email protected]> you wrote:
cmd_pmc440.c: In function 'do_painit':
cmd_pmc440.c:371: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'phys_size_t'Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/esd/pmc440/cmd_pmc440.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
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 I have never understood the female capacity to avoid a direct answer to any question. -- Spock, "This Side of Paradise", stardate 3417.3
PATCH 6/10 GCC4.6: Squash warnings in pmc405de.c
In reply to Marek Vasutpmc405de.c: In function 'do_painit':
pmc405de.c:444: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'phys_size_t'
--- board/esd/pmc405de/pmc405de.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
board/esd/pmc405de/pmc405de.c +1 -1
@@ -441,7 +441,7 @@ int do_painit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])*/ param = base - (pram <<10 );printf ("PARAM: @%08x\n" , param); -debug ("memsize=0x%08x, base=0x%08x\n" , gd->bd->bi_memsize, base); +debug ("memsize=0x%08x, base=0x%08x\n" , (u32 )gd->bd->bi_memsize, base);/* clear entire PA ram */ memset ((void *)param,0 , (pram <<10 ));
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 6/10 GCC4.6: Squash warnings in pmc405de.c
Dear Marek Vasut,
Quoted 11 lines · In message <[email protected]> you wrote:
pmc405de.c: In function 'do_painit':
pmc405de.c:444: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'phys_size_t'Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/esd/pmc405de/pmc405de.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
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 "A little knowledge is a dangerous thing." - Doug Gwyn
PATCH 7/10 GCC4.6: Squash warnings in r360mpi/flash.c
In reply to Marek Vasutflash.c: In function 'flash_get_size':
flash.c:222: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'int'
flash.c:238: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'int'
--- board/r360mpi/flash.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
board/r360mpi/flash.c +2 -2
@@ -219,7 +219,7 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info) value = addr[0 ]; -debug ("Manuf. ID @ 0x%08lx: 0x%08lx\n" , (ulong )addr, value); +debug ("Manuf. ID @ 0x%08lx: 0x%08x\n" , (ulong )addr, value);switch (value) {case (FPW )INTEL_MANUFACT :
@@ -235,7 +235,7 @@ static ulong flash_get_size (FPW * addr, flash_info_t * info) value = addr[1 ];/* device ID */ -debug ("Device ID @ 0x%08lx: 0x%08lx\n" , (ulong)(&addr[1 ]), value); +debug ("Device ID @ 0x%08lx: 0x%08x\n" , (ulong)(&addr[1 ]), value);switch (value) {case (FPW )INTEL_ID_28F320J3A :
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 7/10 GCC4.6: Squash warnings in r360mpi/flash.c
Dear Marek Vasut,
Quoted 6 lines · In message <[email protected]> you wrote:
flash.c: In function 'flash_get_size':
flash.c:222: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'int'
flash.c:238: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'int'
Quoted 7 lines
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/r360mpi/flash.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 7 lines
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 I distrust all systematisers, and avoid them. The will to a system shows a lack of honesty. - Friedrich Wilhelm Nietzsche _G?tzen-D?mmerung [The Twilight of the Idols]_ ``Maxims and Missiles'' no. 26
PATCH 8/10 GCC4.6: Squash warnings in PPChameleonEVB/flash.c
In reply to Marek Vasutflash.c: In function 'flash_init':
flash.c:54: warning: format '%08X' expects type 'unsigned int', but argument 4 has type 'struct flash_info_t *'
--- board/dave/PPChameleonEVB/flash.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
board/dave/PPChameleonEVB/flash.c +2 -1
@@ -51,7 +51,8 @@ unsigned long flash_init (void)int size_val =0 ;debug ("[%s, %d] Entering ...\n" , __FUNCTION__, __LINE__); -debug ("[%s, %d] flash_info = 0x%08X ...\n" , __FUNCTION__, __LINE__, flash_info); +debug ("[%s, %d] flash_info = 0x%p ...\n" , __func__, __LINE__, + flash_info);/* Init: no FLASHes known */ for (i=0 ; i<CONFIG_SYS_MAX_FLASH_BANKS ; ++i) {
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 8/10 GCC4.6: Squash warnings in PPChameleonEVB/flash.c
Dear Marek Vasut,
Quoted 8 lines · In message <[email protected]> you wrote:
flash.c: In function 'flash_init':
flash.c:54: warning: format '%08X' expects type 'unsigned int', but argument 4 has type 'structflash_info_t*'Signed-off-by Marek Vasut <[email protected]>--- board/dave/PPChameleonEVB/flash.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
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 If you fail to plan, plan to fail.
PATCH 9/10 GCC4.6: Squash error in cpc45/pd67290.c
In reply to Marek Vasutpd67290.c: In function 'cirrus_set_opts':
pd67290.c:282: error: 'buf' undeclared (first use in this function) pd67290.c:282: error: (Each undeclared identifier is reported only once pd67290.c:282: error: for each function it appears in.)
--- board/cpc45/pd67290.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)
board/cpc45/pd67290.c +1 -5
@@ -225,11 +225,7 @@ static u_int cirrus_set_opts (socket_info_t * s) {cirrus_state_t *p = &s->c_state;u_int mask =0xffff ; -#if DEBUG -char buf[200 ]; - -memset (buf,0 ,200 ); -#endif +char buf[200 ] = {0 };if (has_ring ==-1 ) has_ring =1 ;
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 9/10 GCC4.6: Squash error in cpc45/pd67290.c
Dear Marek Vasut,
Quoted 5 lines · In message <[email protected]> you wrote:
pd67290.c: In function 'cirrus_set_opts':
pd67290.c:282: error: 'buf' undeclared (first use in this function) pd67290.c:282: error: (Each undeclared identifier is reported only once pd67290.c:282: error: for each function it appears in.)
Quoted 7 lines
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/cpc45/pd67290.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
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 Artificial Intelligence is the study of how to make real computers act like the ones in movies.
PATCH 10/10 GCC4.6: Add macros to mv_gen_reg.h
In reply to Marek Vasutinterrupts.c: In function 'interrupt_init_cpu':
interrupts.c:40: error: 'ETHERNET0_INTERRUPT_CAUSE_REGISTER' undeclared (first use in this function)
interrupts.c:40: error: (Each undeclared identifier is reported only once interrupts.c:40: error: for each function it appears in.) interrupts.c:40: error: 'ETHERNET1_INTERRUPT_CAUSE_REGISTER' undeclared (first use in this function)
interrupts.c:40: error: 'ETHERNET2_INTERRUPT_CAUSE_REGISTER' undeclared (first use in this function)
interrupts.c:44: error: 'ETHERNET0_INTERRUPT_MASK_REGISTER' undeclared (first use in this function)
interrupts.c:44: error: 'ETHERNET1_INTERRUPT_MASK_REGISTER' undeclared (first use in this function)
interrupts.c:44: error: 'ETHERNET2_INTERRUPT_MASK_REGISTER' undeclared (first use in this function)
--- board/Marvell/include/mv_gen_reg.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
board/Marvell/include/mv_gen_reg.h +8 -0
@@ -1864,6 +1864,14 @@#define ETH_DA_FILTER_OTHER_MULTICAST_TABLE_BASE (port) (0x3500 + (port<<10))#define ETH_DA_FILTER_UNICAST_TABLE_BASE (port) (0x3600 + (port<<10)) +/* Compat with interrupts.c */ +#define ETHERNET0_INTERRUPT_CAUSE_REGISTER ETH_INTERRUPT_CAUSE_REG(0) +#define ETHERNET1_INTERRUPT_CAUSE_REGISTER ETH_INTERRUPT_CAUSE_REG(1) +#define ETHERNET2_INTERRUPT_CAUSE_REGISTER ETH_INTERRUPT_CAUSE_REG(2) + +#define ETHERNET0_INTERRUPT_MASK_REGISTER ETH_INTERRUPT_MASK_REG(0) +#define ETHERNET1_INTERRUPT_MASK_REGISTER ETH_INTERRUPT_MASK_REG(1) +#define ETHERNET2_INTERRUPT_MASK_REGISTER ETH_INTERRUPT_MASK_REG(2)/* Ethernet GT64260 */ /*
Signature · 1 line
1.7.6.3
Wolfgang Denk
AppliedPATCH 10/10 GCC4.6: Add macros to mv_gen_reg.h
Dear Marek Vasut,
Quoted 16 lines · In message <[email protected]> you wrote:
interrupts.c: In function 'interrupt_init_cpu':
interrupts.c:40: error: 'ETHERNET0_INTERRUPT_CAUSE_REGISTER' undeclared (first use in this function)
interrupts.c:40: error: (Each undeclared identifier is reported only once interrupts.c:40: error: for each function it appears in.) interrupts.c:40: error: 'ETHERNET1_INTERRUPT_CAUSE_REGISTER' undeclared (first use in this function)
interrupts.c:40: error: 'ETHERNET2_INTERRUPT_CAUSE_REGISTER' undeclared (first use in this function)
interrupts.c:44: error: 'ETHERNET0_INTERRUPT_MASK_REGISTER' undeclared (first use in this function)
interrupts.c:44: error: 'ETHERNET1_INTERRUPT_MASK_REGISTER' undeclared (first use in this function)
interrupts.c:44: error: 'ETHERNET2_INTERRUPT_MASK_REGISTER' undeclared (first use in this function)
Quoted 7 lines
Signed-off-by Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>--- board/Marvell/include/mv_gen_reg.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
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 In accord with UNIX philosophy, Perl gives you enough rope to hang yourself. - L. Wall & R. L. Schwartz, _Programming Perl_