]> git.baikalelectronics.ru Git - kernel.git/commit
net: make symbol 'flush_works' static
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 13 Jul 2020 14:23:44 +0000 (22:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jul 2020 00:24:52 +0000 (17:24 -0700)
commit721e67df26213382b02394f567cd1ab8fdeb82b7
treecaa275c714509a8717c9effad954b4e30a07e857
parent48bf5e966d8da6bc3c5658b8dc5bf23e8f3cf2ad
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: e141cf0f01375 ("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>
net/core/dev.c