diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-13 22:23:44 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-13 17:24:52 -0700 |
commit | ce1e2a776ffcd5ce1570bf8f077ea0c26c1d8a8d (patch) | |
tree | caa275c714509a8717c9effad954b4e30a07e857 | |
parent | ea64ce6d3b579f377d2be788ed5ab71ab00570ee (diff) | |
download | lwn-ce1e2a776ffcd5ce1570bf8f077ea0c26c1d8a8d.tar.gz lwn-ce1e2a776ffcd5ce1570bf8f077ea0c26c1d8a8d.zip |
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>
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index eab4ebe3c21c..b61075828358 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5591,7 +5591,7 @@ void netif_receive_skb_list(struct list_head *head) } EXPORT_SYMBOL(netif_receive_skb_list); -DEFINE_PER_CPU(struct work_struct, flush_works); +static DEFINE_PER_CPU(struct work_struct, flush_works); /* Network device is going away, flush any packets still pending */ static void flush_backlog(struct work_struct *work) |