Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);