Commit ff428d72 authored by Al Viro's avatar Al Viro Committed by David S. Miller

[IPV4]: inet_addr_onlink() annotated

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a60c4923
...@@ -105,7 +105,7 @@ extern int register_inetaddr_notifier(struct notifier_block *nb); ...@@ -105,7 +105,7 @@ extern int register_inetaddr_notifier(struct notifier_block *nb);
extern int unregister_inetaddr_notifier(struct notifier_block *nb); extern int unregister_inetaddr_notifier(struct notifier_block *nb);
extern struct net_device *ip_dev_find(u32 addr); extern struct net_device *ip_dev_find(u32 addr);
extern int inet_addr_onlink(struct in_device *in_dev, u32 a, u32 b); extern int inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b);
extern int devinet_ioctl(unsigned int cmd, void __user *); extern int devinet_ioctl(unsigned int cmd, void __user *);
extern void devinet_init(void); extern void devinet_init(void);
extern struct in_device *inetdev_init(struct net_device *dev); extern struct in_device *inetdev_init(struct net_device *dev);
......
...@@ -224,7 +224,7 @@ static void inetdev_destroy(struct in_device *in_dev) ...@@ -224,7 +224,7 @@ static void inetdev_destroy(struct in_device *in_dev)
call_rcu(&in_dev->rcu_head, in_dev_rcu_put); call_rcu(&in_dev->rcu_head, in_dev_rcu_put);
} }
int inet_addr_onlink(struct in_device *in_dev, u32 a, u32 b) int inet_addr_onlink(struct in_device *in_dev, __be32 a, __be32 b)
{ {
rcu_read_lock(); rcu_read_lock();
for_primary_ifa(in_dev) { for_primary_ifa(in_dev) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment