Skip to contentSkip to conversation

pkt_sched: fix sparse warning

PATCH Applied Hannes Eder 2 participants 2 messages Nov 27, 2008 – Nov 28, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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?

---
 net/sched/sch_api.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sched/sch_api.c +1 -1
index f859dd5..6bc29e8 100644
@@ -189,7 +189,7 @@ EXPORT_SYMBOL(unregister_qdisc);
    (root qdisc, all its children, children of children etc.)
  */
 
-struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle)
+static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle)
 {
 	struct Qdisc *q;
 
Signature · 1 line
1.5.6.3
maintainer Applied
#1 lore raw

From: Hannes Eder <[email protected]>
Date: Thu, 27 Nov 2008 20:33:17 +0100

Quoted 7 lines

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?

Applied, thanks Hannes.