Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Compilation fix for ixgbe_main.c.

Under CONFIG_DCA the compilation is broken since the commit
bd0362dde080cef377d99fa5beb5c25308c29c73 (ixgbe: Add optional
DCA infrastructure).

IXGBE_SUCCESS is not defined anywhere, replace it with 0.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Denis V. Lunev and committed by
Jeff Garzik
652f093f 80950f8b

+3 -3
+3 -3
drivers/net/ixgbe/ixgbe_main.c
··· 367 367 /* Always use CB2 mode, difference is masked 368 368 * in the CB driver. */ 369 369 IXGBE_WRITE_REG(&adapter->hw, IXGBE_DCA_CTRL, 2); 370 - if (dca_add_requester(dev) == IXGBE_SUCCESS) { 370 + if (dca_add_requester(dev) == 0) { 371 371 ixgbe_setup_dca(adapter); 372 372 break; 373 373 } ··· 381 381 break; 382 382 } 383 383 384 - return IXGBE_SUCCESS; 384 + return 0; 385 385 } 386 386 387 387 #endif /* CONFIG_DCA */ ··· 3605 3605 goto err_register; 3606 3606 3607 3607 #ifdef CONFIG_DCA 3608 - if (dca_add_requester(&pdev->dev) == IXGBE_SUCCESS) { 3608 + if (dca_add_requester(&pdev->dev) == 0) { 3609 3609 adapter->flags |= IXGBE_FLAG_DCA_ENABLED; 3610 3610 /* always use CB2 mode, difference is masked 3611 3611 * in the CB driver */