mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
[NET]: Fix the prototype of call_netdevice_notifiers.
This replaces the void * parameter with a struct net_device * which is what is actually required. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
22dd749501
commit
ad7379d494
2 changed files with 3 additions and 3 deletions
|
@ -792,7 +792,7 @@ extern void free_netdev(struct net_device *dev);
|
||||||
extern void synchronize_net(void);
|
extern void synchronize_net(void);
|
||||||
extern int register_netdevice_notifier(struct notifier_block *nb);
|
extern int register_netdevice_notifier(struct notifier_block *nb);
|
||||||
extern int unregister_netdevice_notifier(struct notifier_block *nb);
|
extern int unregister_netdevice_notifier(struct notifier_block *nb);
|
||||||
extern int call_netdevice_notifiers(unsigned long val, void *v);
|
extern int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
|
||||||
extern struct net_device *dev_get_by_index(struct net *net, int ifindex);
|
extern struct net_device *dev_get_by_index(struct net *net, int ifindex);
|
||||||
extern struct net_device *__dev_get_by_index(struct net *net, int ifindex);
|
extern struct net_device *__dev_get_by_index(struct net *net, int ifindex);
|
||||||
extern int dev_restart(struct net_device *dev);
|
extern int dev_restart(struct net_device *dev);
|
||||||
|
|
|
@ -1206,9 +1206,9 @@ int unregister_netdevice_notifier(struct notifier_block *nb)
|
||||||
* are as for raw_notifier_call_chain().
|
* are as for raw_notifier_call_chain().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int call_netdevice_notifiers(unsigned long val, void *v)
|
int call_netdevice_notifiers(unsigned long val, struct net_device *dev)
|
||||||
{
|
{
|
||||||
return raw_notifier_call_chain(&netdev_chain, val, v);
|
return raw_notifier_call_chain(&netdev_chain, val, dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When > 0 there are consumers of rx skb time stamps */
|
/* When > 0 there are consumers of rx skb time stamps */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue