Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pkt_sched: fix sparse warning

Impact: make global function static

Fix the following sparse warning:

net/sched/sch_api.c:192:14: warning: symbol 'qdisc_match_from_root' was not declared. Should it be static?

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Hannes Eder and committed by
David S. Miller
6113b748 ea5693cc

+1 -1
+1 -1
net/sched/sch_api.c
··· 189 189 (root qdisc, all its children, children of children etc.) 190 190 */ 191 191 192 - struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) 192 + static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) 193 193 { 194 194 struct Qdisc *q; 195 195