diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-09-26 12:09:45 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-28 10:25:11 -0700 |
commit | 5d70a6701860ec10e0f807c353700f439fbdd90b (patch) | |
tree | da6125ca7dd5d390d9003747d9daf0d4c8528be1 /net/core | |
parent | a9ca7f17c6d240e269a24cbcd76abf9a940309dd (diff) | |
download | linux-5d70a6701860ec10e0f807c353700f439fbdd90b.tar.gz linux-5d70a6701860ec10e0f807c353700f439fbdd90b.tar.bz2 linux-5d70a6701860ec10e0f807c353700f439fbdd90b.zip |
net/core: make function ___gnet_stats_copy_basic() static
Fixes the following sparse warning:
net/core/gen_stats.c:166:1: warning:
symbol '___gnet_stats_copy_basic' was not declared. Should it be static?
Fixes: 5e111210a443 ("net/core: Add new basic hardware counter")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/gen_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/gen_stats.c b/net/core/gen_stats.c index 65a2e820364f..9bf1b9ad1780 100644 --- a/net/core/gen_stats.c +++ b/net/core/gen_stats.c @@ -162,7 +162,7 @@ __gnet_stats_copy_basic(const seqcount_t *running, } EXPORT_SYMBOL(__gnet_stats_copy_basic); -int +static int ___gnet_stats_copy_basic(const seqcount_t *running, struct gnet_dump *d, struct gnet_stats_basic_cpu __percpu *cpu, |