GCC4 compile fixes for mpc52xx
PATCH 1/1 GCC4 compile fixes for mpc52xx
Sylvain,
A quick patch to fix your tree for gcc4
-rb
drivers/net/fec_mpc52xx/fec.c: In function 'fec_reinit':drivers/net/fec_mpc52xx/fec.c:525: error: invalid storage class for function 'fec_update_stat'
drivers/serial/mpc52xx_uart.c:707: error: static declaration of 'mpc52xx_uart_driver' follows non-static declaration drivers/serial/mpc52xx_uart.c:675: error: previous declaration of 'mpc52xx_uart_driver' was here
Signed off by Roger Blofeld <[email protected]>
(quoted diff) +0 -0
b/drivers/net/fec_mpc52xx/fec.c
drivers/net/fec_mpc52xx/fec.c +1 -1
@@ -522,7 +522,7 @@ static void fec_reinit(struct net_device {struct fec_priv *priv = (struct fec_priv *)dev->priv;struct mpc52xx_fec *fec = priv->fec; -static void fec_update_stat (struct net_device *); +void fec_update_stat (struct net_device *);netif_stop_queue (dev);out_be32 (&fec->imask,0x0 );
(quoted diff) +0 -0
b/drivers/serial/mpc52xx_uart.c
drivers/serial/mpc52xx_uart.c +1 -1
@@ -672,7 +672,7 @@ mpc52xx_console_setup(struct console *co } -extern struct uart_driver mpc52xx_uart_driver; +static struct uart_driver mpc52xx_uart_driver;static struct console mpc52xx_console = { .name ="ttyPSC" ,
no microsoft products were used in the production of this email
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Sylvain Munaut
AppliedQuoted 8 lines · roger blofeld
Sylvain,
A quick patch to fix your tree for gcc4
-rb
drivers/net/fec_mpc52xx/fec.c: In function 'fec_reinit':drivers/net/fec_mpc52xx/fec.c:525: error: invalid storage class for function 'fec_update_stat'
Quoted 7 lines
drivers/serial/mpc52xx_uart.c:707: error: static declaration of 'mpc52xx_uart_driver' follows non-static declarationdrivers/serial/mpc52xx_uart.c:675: error: previous declaration of 'mpc52xx_uart_driver' was hereSigned off by Roger Blofeld <[email protected]>
Hi Roger,
Applied to my tree (with slight modification, I don't even see why fec_update was declared there so I just removed it.)
The relevant part to the UART driver will be pushed along my next set of update.
Sylvain