[2.4 patch] some gcc 3.3 fixes from -ac

From: Adrian Bunk (bunk@fs.tum.de)
Date: Fri Jun 27 2003 - 12:58:53 EST


Hi Marcelo,

the patch below contains four trivial fixes for compile failures with
gcc 3.3 stolen from -ac.

I've tested the compilation with 2.4.22-pre2.

diffstat output:

 drivers/net/irda/ma600.c | 6 +++---
 drivers/net/wan/sdla_chdlc.c | 3 +--
 drivers/sound/cs46xx.c | 4 ++--
 net/decnet/dn_table.c | 3 +--
 4 files changed, 7 insertions(+), 9 deletions(-)

Please apply
Adrian

--- linux.vanilla/drivers/net/irda/ma600.c 2002-11-29 21:27:18.000000000 +0000
+++ linux.21-ac3/drivers/net/irda/ma600.c 2003-05-29 01:40:07.000000000 +0100
@@ -51,9 +51,9 @@
         #undef ASSERT(expr, func)
         #define ASSERT(expr, func) \
         if(!(expr)) { \
- printk( "Assertion failed! %s,%s,%s,line=%d\n",\
- #expr,__FILE__,__FUNCTION__,__LINE__); \
- ##func}
+ printk( "Assertion failed! %s,%s,%s,line=%d\n",\
+ #expr,__FILE__,__FUNCTION__,__LINE__); \
+ func}
 #endif
 
 /* convert hex value to ascii hex */
--- linux.vanilla/drivers/net/wan/sdla_chdlc.c 2002-11-29 21:27:18.000000000 +0000
+++ linux.21-ac3/drivers/net/wan/sdla_chdlc.c 2003-05-28 15:35:56.000000000 +0100
@@ -591,8 +591,7 @@
         
 
                 if (chdlc_set_intr_mode(card, APP_INT_ON_TIMER)){
- printk (KERN_INFO "%s:
- Failed to set interrupt triggers!\n",
+ printk (KERN_INFO "%s: Failed to set interrupt triggers!\n",
                                 card->devname);
                         return -EIO;
                 }
--- linux.vanilla/drivers/sound/cs46xx.c 2003-06-14 00:11:37.000000000 +0100
+++ linux.21-ac3/drivers/sound/cs46xx.c 2003-06-22 13:36:11.000000000 +0100
@@ -947,8 +950,8 @@
 
 struct InitStruct
 {
- u32 long off;
- u32 long val;
+ u32 off;
+ u32 val;
 } InitArray[] = { {0x00000040, 0x3fc0000f},
                   {0x0000004c, 0x04800000},
 
--- linux.vanilla/net/decnet/dn_table.c 2001-12-21 17:42:05.000000000 +0000
+++ linux.21-ac3/net/decnet/dn_table.c 2003-05-28 15:37:27.000000000 +0100
@@ -836,8 +836,7 @@
                 return NULL;
 
         if (in_interrupt() && net_ratelimit()) {
- printk(KERN_DEBUG "DECnet: BUG! Attempt to create routing table
-from interrupt\n");
+ printk(KERN_DEBUG "DECnet: BUG! Attempt to create routing table from interrupt\n");
                 return NULL;
         }
         if ((t = kmalloc(sizeof(struct dn_fib_table), GFP_KERNEL)) == NULL)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 30 2003 - 22:00:27 EST