diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-09-27 14:47:56 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-28 11:04:58 -0700 |
commit | 5362700c942b2cc4bab328361545a6d6fe649534 (patch) | |
tree | 36916f6f126369c4337db84315a6de6139f5f693 /net/sched | |
parent | a804e5e21875418af03e0a413a633f4643739c90 (diff) |
net: sched: make function qdisc_free_cb() static
Fixes the following sparse warning:
net/sched/sch_generic.c:944:6: warning:
symbol 'qdisc_free_cb' was not declared. Should it be static?
Fixes: 3a7d0d07a386 ("net: sched: extend Qdisc with rcu")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 531fac1d2875..3023929852e8 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -941,7 +941,7 @@ void qdisc_free(struct Qdisc *qdisc) kfree((char *) qdisc - qdisc->padded); } -void qdisc_free_cb(struct rcu_head *head) +static void qdisc_free_cb(struct rcu_head *head) { struct Qdisc *q = container_of(head, struct Qdisc, rcu); |