arch/powerpc/cpu/mpc512x/pci.c: Fix GCC 4.6 warnings
PATCH 1/2 arch/powerpc/cpu/mpc512x/pci.c: Fix GCC 4.6 warnings
Fix:pci.c: In function 'pci_init_board':
pci.c:55:26: warning: variable 'pci_conf' set but not used [-Wunused-but-set-variable]
--- arch/powerpc/cpu/mpc512x/pci.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
arch/powerpc/cpu/mpc512x/pci.c +0 -2
@@ -52,7 +52,6 @@ pci_init_board(void)volatile law512x_t *pci_law;volatile pot512x_t *pci_pot;volatile pcictrl512x_t *pci_ctrl; -volatile pciconf512x_t *pci_conf;u16 reg16;u32 reg32;u32 dev;
@@ -73,7 +72,6 @@ pci_init_board(void) pci_law = im->sysconf.pcilaw; pci_pot = im->ios.pot; pci_ctrl = &im->pci_ctrl; - pci_conf = &im->pci_conf; hose = &pci_hose;
Signature · 1 line
1.7.6.4
PATCH 2/2 arch/powerpc/cpu/mpc512x/i2c.c: Fix GCC 4.6 warnings
Fix:i2c.c: In function 'wait_for_bb':
i2c.c:81:16: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
--- arch/powerpc/cpu/mpc512x/i2c.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
arch/powerpc/cpu/mpc512x/i2c.c +1 -2
@@ -78,9 +78,8 @@ static int wait_for_bb (void) status =mpc_reg_in (®s->msr);while (timeout-- && (status &I2C_BB )) { -volatile int temp;mpc_reg_out (®s->mcr,I2C_STA ,I2C_STA ); - temp =mpc_reg_in (®s->mdr); + (void )mpc_reg_in (®s->mdr);mpc_reg_out (®s->mcr,0 ,I2C_STA );mpc_reg_out (®s->mcr,0 ,0 );mpc_reg_out (®s->mcr,I2C_EN ,0 );
Signature · 1 line
1.7.6.4
Wolfgang Denk
AppliedPATCH 1/2 arch/powerpc/cpu/mpc512x/pci.c: Fix GCC 4.6 warnings
In reply to Anatolij GustschinDear Anatolij Gustschin,
Quoted 9 lines · In message <[email protected]> you wrote:
Fix:
pci.c: In function 'pci_init_board':
pci.c:55:26: warning: variable 'pci_conf' set but not used [-Wunused-but-set-variable]Signed-off-by Anatolij Gustschin <[email protected]>--- arch/powerpc/cpu/mpc512x/pci.c | 2 -- 1 files changed, 0 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 Lots of folks confuse bad management with destiny. -- Frank Hubbard
Wolfgang Denk
AppliedPATCH 2/2 arch/powerpc/cpu/mpc512x/i2c.c: Fix GCC 4.6 warnings
In reply to Anatolij GustschinDear Anatolij Gustschin,
Quoted 9 lines · In message <[email protected]> you wrote:
Fix:
i2c.c: In function 'wait_for_bb':
i2c.c:81:16: warning: variable 'temp' set but not used [-Wunused-but-set-variable]Signed-off-by Anatolij Gustschin <[email protected]>--- arch/powerpc/cpu/mpc512x/i2c.c | 3 +-- 1 files changed, 1 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 Of all the things I've lost, I miss my mind the most.