net: sched: make function qdisc_free_cb() static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 27 Sep 2018 14:47:56 +0000 (14:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Sep 2018 18:04:58 +0000 (11:04 -0700)
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>
net/sched/sch_generic.c

index 531fac1d287541f76571e5a1b811716321ca289b..3023929852e8c4aaa4172861d2d0beff17e25f27 100644 (file)
@@ -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);