gcc4 doesn't like us declaring a static function inside another
function.  We can do away with this construct altogether and use
BUILD_BUG_ON() instead (idea from Andi Kleen.)

Signed-off-by: Lennert Buytenhek <[EMAIL PROTECTED]>

--- linux-2.6.16-git16/drivers/net/ixp2000/ixpdev.c.orig        2006-03-29 
15:05:27.000000000 +0200
+++ linux-2.6.16-git16/drivers/net/ixp2000/ixpdev.c     2006-03-29 
15:07:03.000000000 +0200
@@ -299,10 +299,7 @@
        int i;
        int err;
 
-       if (RX_BUF_COUNT > 192 || TX_BUF_COUNT > 192) {
-               static void __too_many_rx_or_tx_buffers(void);
-               __too_many_rx_or_tx_buffers();
-       }
+       BUILD_BUG_ON(RX_BUF_COUNT > 192 || TX_BUF_COUNT > 192);
 
        printk(KERN_INFO "IXP2000 MSF ethernet driver %s\n", 
DRV_MODULE_VERSION);
 
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to