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

net: make symbol 'flush_works' static

The sparse tool complains as follows:

net/core/dev.c:5594:1: warning:
symbol '__pcpu_scope_flush_works' was not declared. Should it be static?

'flush_works' is not used outside of dev.c, so marks
it static.

Fixes: 41852497a9205 ("net: batch calls to flush_all_backlogs()")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wei Yongjun and committed by
David S. Miller
ce1e2a77 ea64ce6d

+1 -1
+1 -1
net/core/dev.c
··· 5591 5591 } 5592 5592 EXPORT_SYMBOL(netif_receive_skb_list); 5593 5593 5594 - DEFINE_PER_CPU(struct work_struct, flush_works); 5594 + static DEFINE_PER_CPU(struct work_struct, flush_works); 5595 5595 5596 5596 /* Network device is going away, flush any packets still pending */ 5597 5597 static void flush_backlog(struct work_struct *work)