Commit 5d4fe2c1 authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by Jeff Garzik

[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: default avatarLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 391fc09a
...@@ -299,10 +299,7 @@ int ixpdev_init(int __nds_count, struct net_device **__nds, ...@@ -299,10 +299,7 @@ int ixpdev_init(int __nds_count, struct net_device **__nds,
int i; int i;
int err; int err;
if (RX_BUF_COUNT > 192 || TX_BUF_COUNT > 192) { BUILD_BUG_ON(RX_BUF_COUNT > 192 || TX_BUF_COUNT > 192);
static void __too_many_rx_or_tx_buffers(void);
__too_many_rx_or_tx_buffers();
}
printk(KERN_INFO "IXP2000 MSF ethernet driver %s\n", DRV_MODULE_VERSION); printk(KERN_INFO "IXP2000 MSF ethernet driver %s\n", DRV_MODULE_VERSION);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment