Skip to content

Commit

Permalink
arp: make arp_invalidate static
Browse files Browse the repository at this point in the history
Don't export arp_invalidate, only used in arp.c

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Dec 28, 2013
1 parent c9cb6b6 commit 7195cf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion include/net/arp.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,5 @@ struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
const unsigned char *src_hw,
const unsigned char *target_hw);
void arp_xmit(struct sk_buff *skb);
int arp_invalidate(struct net_device *dev, __be32 ip);

#endif /* _ARP_H */
3 changes: 1 addition & 2 deletions net/ipv4/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ static int arp_req_get(struct arpreq *r, struct net_device *dev)
return err;
}

int arp_invalidate(struct net_device *dev, __be32 ip)
static int arp_invalidate(struct net_device *dev, __be32 ip)
{
struct neighbour *neigh = neigh_lookup(&arp_tbl, &ip, dev);
int err = -ENXIO;
Expand All @@ -1127,7 +1127,6 @@ int arp_invalidate(struct net_device *dev, __be32 ip)

return err;
}
EXPORT_SYMBOL(arp_invalidate);

static int arp_req_delete_public(struct net *net, struct arpreq *r,
struct net_device *dev)
Expand Down

0 comments on commit 7195cf7

Please sign in to comment.