Move napi_threaded_poll routine declaration in netdevice.h and remove static keyword in order to reuse it in cpumap codebase. Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> --- include/linux/netdevice.h | 1 + net/core/dev.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 9f083314fc4bc97059b02c6ee6d919bedb4e046d..a73315c0f2849aee141f11e4c970b233590a0dfa 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2677,6 +2677,7 @@ static inline void netif_napi_set_irq(struct napi_struct *napi, int irq) */ #define NAPI_POLL_WEIGHT 64 +int napi_threaded_poll(void *data); int napi_init_for_gro(struct net_device *dev, struct napi_struct *napi, int (*poll)(struct napi_struct *, int), int weight); void netif_napi_add_weight(struct net_device *dev, struct napi_struct *napi, diff --git a/net/core/dev.c b/net/core/dev.c index 20d531a54214e9ecf1128a668cf3763433e1989b..cf09a0c6abe50ebb95b22fe06705be95f46a7c6d 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -1419,8 +1419,6 @@ void netdev_notify_peers(struct net_device *dev) } EXPORT_SYMBOL(netdev_notify_peers); -static int napi_threaded_poll(void *data); - static int napi_kthread_create(struct napi_struct *n) { int err = 0; @@ -7027,7 +7025,7 @@ static void napi_threaded_poll_loop(struct napi_struct *napi) } } -static int napi_threaded_poll(void *data) +int napi_threaded_poll(void *data) { struct napi_struct *napi = data; -- 2.47.0