[PATCH] ixp2000: fix gcc4 breakage

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 <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Lennert Buytenhek and committed by
Jeff Garzik
5d4fe2c1 391fc09a

+1 -4
+1 -4
drivers/net/ixp2000/ixpdev.c
··· 299 int i; 300 int err; 301 302 - if (RX_BUF_COUNT > 192 || TX_BUF_COUNT > 192) { 303 - static void __too_many_rx_or_tx_buffers(void); 304 - __too_many_rx_or_tx_buffers(); 305 - } 306 307 printk(KERN_INFO "IXP2000 MSF ethernet driver %s\n", DRV_MODULE_VERSION); 308
··· 299 int i; 300 int err; 301 302 + BUILD_BUG_ON(RX_BUF_COUNT > 192 || TX_BUF_COUNT > 192); 303 304 printk(KERN_INFO "IXP2000 MSF ethernet driver %s\n", DRV_MODULE_VERSION); 305