diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-10-02 19:56:50 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-10-04 02:03:25 +0200 |
commit | 899b8cd0d3922f57176f5a7f552ce93d8a5cd90b (patch) | |
tree | ad0a435cbe5bbbd9d2d436e7a2ece3d68766c32c /drivers/net/ethernet/cavium/octeon | |
parent | Merge branch 'mlx5-xsk-updates-part4-and-more' (diff) | |
download | linux-899b8cd0d3922f57176f5a7f552ce93d8a5cd90b.tar.xz linux-899b8cd0d3922f57176f5a7f552ce93d8a5cd90b.zip |
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: b48b89f9c189 ("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>
Diffstat (limited to 'drivers/net/ethernet/cavium/octeon')
-rw-r--r-- | drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c index 369bfd376d6f..edde0b8fa49c 100644 --- a/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c +++ b/drivers/net/ethernet/cavium/octeon/octeon_mgmt.c @@ -1396,8 +1396,8 @@ static int octeon_mgmt_probe(struct platform_device *pdev) platform_set_drvdata(pdev, netdev); p = netdev_priv(netdev); - netif_napi_add(netdev, &p->napi, octeon_mgmt_napi_poll, - OCTEON_MGMT_NAPI_WEIGHT); + netif_napi_add_weight(netdev, &p->napi, octeon_mgmt_napi_poll, + OCTEON_MGMT_NAPI_WEIGHT); p->netdev = netdev; p->dev = &pdev->dev; |