mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
net: sched: make function qdisc_free_cb() static
commit5362700c94upstream. 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:3a7d0d07a3("net: sched: extend Qdisc with rcu") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f9ff09e266
commit
3abc67ecf3
@@ -958,7 +958,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user