mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
netpoll: remove ndo_netpoll_setup() second argument
npinfo is not used in any of the ndo_netpoll_setup() methods. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20241018052108.2610827-1-edumazet@google.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
c972c1c41d
commit
e44ef3f66c
@ -1476,7 +1476,7 @@ static void bond_netpoll_cleanup(struct net_device *bond_dev)
|
||||
slave_disable_netpoll(slave);
|
||||
}
|
||||
|
||||
static int bond_netpoll_setup(struct net_device *dev, struct netpoll_info *ni)
|
||||
static int bond_netpoll_setup(struct net_device *dev)
|
||||
{
|
||||
struct bonding *bond = netdev_priv(dev);
|
||||
struct list_head *iter;
|
||||
|
@ -1117,7 +1117,7 @@ static void macvlan_dev_poll_controller(struct net_device *dev)
|
||||
return;
|
||||
}
|
||||
|
||||
static int macvlan_dev_netpoll_setup(struct net_device *dev, struct netpoll_info *npinfo)
|
||||
static int macvlan_dev_netpoll_setup(struct net_device *dev)
|
||||
{
|
||||
struct macvlan_dev *vlan = netdev_priv(dev);
|
||||
struct net_device *real_dev = vlan->lowerdev;
|
||||
|
@ -1946,8 +1946,7 @@ static void team_netpoll_cleanup(struct net_device *dev)
|
||||
mutex_unlock(&team->lock);
|
||||
}
|
||||
|
||||
static int team_netpoll_setup(struct net_device *dev,
|
||||
struct netpoll_info *npifo)
|
||||
static int team_netpoll_setup(struct net_device *dev)
|
||||
{
|
||||
struct team *team = netdev_priv(dev);
|
||||
struct team_port *port;
|
||||
|
@ -1425,8 +1425,7 @@ struct net_device_ops {
|
||||
__be16 proto, u16 vid);
|
||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
||||
void (*ndo_poll_controller)(struct net_device *dev);
|
||||
int (*ndo_netpoll_setup)(struct net_device *dev,
|
||||
struct netpoll_info *info);
|
||||
int (*ndo_netpoll_setup)(struct net_device *dev);
|
||||
void (*ndo_netpoll_cleanup)(struct net_device *dev);
|
||||
#endif
|
||||
int (*ndo_set_vf_mac)(struct net_device *dev,
|
||||
|
@ -725,7 +725,7 @@ static void vlan_dev_poll_controller(struct net_device *dev)
|
||||
return;
|
||||
}
|
||||
|
||||
static int vlan_dev_netpoll_setup(struct net_device *dev, struct netpoll_info *npinfo)
|
||||
static int vlan_dev_netpoll_setup(struct net_device *dev)
|
||||
{
|
||||
struct vlan_dev_priv *vlan = vlan_dev_priv(dev);
|
||||
struct net_device *real_dev = vlan->real_dev;
|
||||
|
@ -328,7 +328,7 @@ int br_netpoll_enable(struct net_bridge_port *p)
|
||||
return __br_netpoll_enable(p);
|
||||
}
|
||||
|
||||
static int br_netpoll_setup(struct net_device *dev, struct netpoll_info *ni)
|
||||
static int br_netpoll_setup(struct net_device *dev)
|
||||
{
|
||||
struct net_bridge *br = netdev_priv(dev);
|
||||
struct net_bridge_port *p;
|
||||
|
@ -641,7 +641,7 @@ int __netpoll_setup(struct netpoll *np, struct net_device *ndev)
|
||||
|
||||
ops = ndev->netdev_ops;
|
||||
if (ops->ndo_netpoll_setup) {
|
||||
err = ops->ndo_netpoll_setup(ndev, npinfo);
|
||||
err = ops->ndo_netpoll_setup(ndev);
|
||||
if (err)
|
||||
goto free_npinfo;
|
||||
}
|
||||
|
@ -1308,8 +1308,7 @@ static int dsa_user_set_pauseparam(struct net_device *dev,
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
||||
static int dsa_user_netpoll_setup(struct net_device *dev,
|
||||
struct netpoll_info *ni)
|
||||
static int dsa_user_netpoll_setup(struct net_device *dev)
|
||||
{
|
||||
struct net_device *conduit = dsa_user_to_conduit(dev);
|
||||
struct dsa_user_priv *p = netdev_priv(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user