Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netpoll: Remove unused EXPORT_SYMBOLs of netpoll_poll and netpoll_poll_dev

Unused symbols waste space.

Commit 0e34e93177fb
"(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>

authored by

Joe Perches and committed by
David S. Miller
234b921d aea54bce

+2 -6
-2
include/linux/netpoll.h
··· 40 40 struct netpoll *netpoll; 41 41 }; 42 42 43 - void netpoll_poll_dev(struct net_device *dev); 44 - void netpoll_poll(struct netpoll *np); 45 43 void netpoll_send_udp(struct netpoll *np, const char *msg, int len); 46 44 void netpoll_print_options(struct netpoll *np); 47 45 int netpoll_parse_options(struct netpoll *np, char *opt);
+2 -4
net/core/netpoll.c
··· 177 177 } 178 178 } 179 179 180 - void netpoll_poll_dev(struct net_device *dev) 180 + static void netpoll_poll_dev(struct net_device *dev) 181 181 { 182 182 const struct net_device_ops *ops; 183 183 ··· 208 208 209 209 zap_completion_queue(); 210 210 } 211 - EXPORT_SYMBOL(netpoll_poll_dev); 212 211 213 - void netpoll_poll(struct netpoll *np) 212 + static void netpoll_poll(struct netpoll *np) 214 213 { 215 214 netpoll_poll_dev(np->dev); 216 215 } 217 - EXPORT_SYMBOL(netpoll_poll); 218 216 219 217 static void refill_skbs(void) 220 218 {