linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] GCC4 compile fixes for mpc52xx
@ 2005-06-20 19:32 roger blofeld
  2005-06-21  7:10 ` Sylvain Munaut
  0 siblings, 1 reply; 2+ messages in thread
From: roger blofeld @ 2005-06-20 19:32 UTC (permalink / raw)
  To: Sylvain Munaut; +Cc: linuxppc-embedded

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 <blofeldus@yahoo.com>

diff --git a/drivers/net/fec_mpc52xx/fec.c
b/drivers/net/fec_mpc52xx/fec.c
--- a/drivers/net/fec_mpc52xx/fec.c
+++ b/drivers/net/fec_mpc52xx/fec.c
@@ -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);
diff --git a/drivers/serial/mpc52xx_uart.c
b/drivers/serial/mpc52xx_uart.c
--- a/drivers/serial/mpc52xx_uart.c
+++ b/drivers/serial/mpc52xx_uart.c
@@ -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 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] GCC4 compile fixes for mpc52xx
  2005-06-20 19:32 [PATCH] GCC4 compile fixes for mpc52xx roger blofeld
@ 2005-06-21  7:10 ` Sylvain Munaut
  0 siblings, 0 replies; 2+ messages in thread
From: Sylvain Munaut @ 2005-06-21  7:10 UTC (permalink / raw)
  To: roger blofeld; +Cc: linuxppc-embedded

roger blofeld wrote:
> 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 <blofeldus@yahoo.com>
> 

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-21  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 19:32 [PATCH] GCC4 compile fixes for mpc52xx roger blofeld
2005-06-21  7:10 ` Sylvain Munaut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).