Skip to content

Commit a64de47

Browse files
stephen hemmingerdavem330
authored andcommitted
arp: remove unnecessary export of arp_broken_ops
arp_broken_ops is only used in arp.c Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bfa5ae6 commit a64de47

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎include/net/arp.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ extern struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
2626
const unsigned char *target_hw);
2727
extern void arp_xmit(struct sk_buff *skb);
2828

29-
extern const struct neigh_ops arp_broken_ops;
30-
3129
#endif /* _ARP_H */

‎net/ipv4/arp.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static const struct neigh_ops arp_direct_ops = {
161161
.queue_xmit = dev_queue_xmit,
162162
};
163163

164-
const struct neigh_ops arp_broken_ops = {
164+
static const struct neigh_ops arp_broken_ops = {
165165
.family = AF_INET,
166166
.solicit = arp_solicit,
167167
.error_report = arp_error_report,
@@ -170,7 +170,6 @@ const struct neigh_ops arp_broken_ops = {
170170
.hh_output = dev_queue_xmit,
171171
.queue_xmit = dev_queue_xmit,
172172
};
173-
EXPORT_SYMBOL(arp_broken_ops);
174173

175174
struct neigh_table arp_tbl = {
176175
.family = AF_INET,

0 commit comments

Comments
 (0)