Skip to content

Commit

Permalink
[PATCH] ixp2000: fix gcc4 breakage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
buytenh authored and Jeff Garzik committed Mar 29, 2006
1 parent 391fc09 commit 5d4fe2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/ixp2000/ixpdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,7 @@ int ixpdev_init(int __nds_count, struct net_device **__nds,
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);

Expand Down

0 comments on commit 5d4fe2c

Please sign in to comment.