Skip to content

Commit

Permalink
netpoll: Remove unused EXPORT_SYMBOLs of netpoll_poll and netpoll_pol…
Browse files Browse the repository at this point in the history
…l_dev

Unused symbols waste space.

Commit 0e34e93
"(netpoll: add generic support for bridge and bonding devices)"
added the symbol more than a year ago with the promise of "future use".

Because it is so far unused, remove it for now.
It can be easily readded if or when it actually needs to be used.

cc: WANG Cong <amwang@redhat.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
JoePerches authored and davem330 committed Jul 4, 2011
1 parent aea54bc commit 234b921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions include/linux/netpoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ struct netpoll_info {
struct netpoll *netpoll;
};

void netpoll_poll_dev(struct net_device *dev);
void netpoll_poll(struct netpoll *np);
void netpoll_send_udp(struct netpoll *np, const char *msg, int len);
void netpoll_print_options(struct netpoll *np);
int netpoll_parse_options(struct netpoll *np, char *opt);
Expand Down
6 changes: 2 additions & 4 deletions net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static void service_arp_queue(struct netpoll_info *npi)
}
}

void netpoll_poll_dev(struct net_device *dev)
static void netpoll_poll_dev(struct net_device *dev)
{
const struct net_device_ops *ops;

Expand Down Expand Up @@ -208,13 +208,11 @@ void netpoll_poll_dev(struct net_device *dev)

zap_completion_queue();
}
EXPORT_SYMBOL(netpoll_poll_dev);

void netpoll_poll(struct netpoll *np)
static void netpoll_poll(struct netpoll *np)
{
netpoll_poll_dev(np->dev);
}
EXPORT_SYMBOL(netpoll_poll);

static void refill_skbs(void)
{
Expand Down

0 comments on commit 234b921

Please sign in to comment.