Skip to content

Commit 899b8cd

Browse files
committed
eth: octeon: fix build after netif_napi_add() changes
Guenter reports I missed a netif_napi_add() call in one of the platform-specific drivers: drivers/net/ethernet/cavium/octeon/octeon_mgmt.c: In function 'octeon_mgmt_probe': drivers/net/ethernet/cavium/octeon/octeon_mgmt.c:1399:9: error: too many arguments to function 'netif_napi_add' 1399 | netif_napi_add(netdev, &p->napi, octeon_mgmt_napi_poll, | ^~~~~~~~~~~~~~ Reported-by: Guenter Roeck <linux@roeck-us.net> Fixes: b48b89f ("net: drop the weight argument from netif_napi_add") Link: https://lore.kernel.org/r/20221002175650.1491124-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent b89eced commit 899b8cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/cavium/octeon/octeon_mgmt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,8 +1396,8 @@ static int octeon_mgmt_probe(struct platform_device *pdev)
13961396

13971397
platform_set_drvdata(pdev, netdev);
13981398
p = netdev_priv(netdev);
1399-
netif_napi_add(netdev, &p->napi, octeon_mgmt_napi_poll,
1400-
OCTEON_MGMT_NAPI_WEIGHT);
1399+
netif_napi_add_weight(netdev, &p->napi, octeon_mgmt_napi_poll,
1400+
OCTEON_MGMT_NAPI_WEIGHT);
14011401

14021402
p->netdev = netdev;
14031403
p->dev = &pdev->dev;

0 commit comments

Comments
 (0)