* [PATCH net-next] arp: make arp_invalidate static
@ 2013-12-28 19:07 Stephen Hemminger
2013-12-28 22:03 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2013-12-28 19:07 UTC (permalink / raw)
To: David Miller; +Cc: netdev
Don't export arp_invalidate, only used in arp.c
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
include/net/arp.h | 1 -
net/ipv4/arp.c | 3 +--
2 files changed, 1 insertion(+), 3 deletions(-)
--- a/include/net/arp.h 2013-12-24 15:15:26.817740541 -0800
+++ b/include/net/arp.h 2013-12-24 15:15:59.561300476 -0800
@@ -62,6 +62,5 @@ struct sk_buff *arp_create(int type, int
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 */
--- a/net/ipv4/arp.c 2013-12-24 15:15:26.817740541 -0800
+++ b/net/ipv4/arp.c 2013-12-24 15:15:59.561300476 -0800
@@ -1112,7 +1112,7 @@ static int arp_req_get(struct arpreq *r,
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;
@@ -1127,7 +1127,6 @@ int arp_invalidate(struct net_device *de
return err;
}
-EXPORT_SYMBOL(arp_invalidate);
static int arp_req_delete_public(struct net *net, struct arpreq *r,
struct net_device *dev)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] arp: make arp_invalidate static
2013-12-28 19:07 [PATCH net-next] arp: make arp_invalidate static Stephen Hemminger
@ 2013-12-28 22:03 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-12-28 22:03 UTC (permalink / raw)
To: stephen; +Cc: netdev
From: Stephen Hemminger <stephen@networkplumber.org>
Date: Sat, 28 Dec 2013 11:07:18 -0800
> Don't export arp_invalidate, only used in arp.c
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-28 22:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-28 19:07 [PATCH net-next] arp: make arp_invalidate static Stephen Hemminger
2013-12-28 22:03 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).