OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfb8cc3
)
pkt_sched: Annotate uninitialized var in sfq_enqueue()
author
Jarek Poplawski
<jarkao2@gmail.com>
Mon, 22 Dec 2008 04:14:48 +0000
(20:14 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 22 Dec 2008 04:14:48 +0000
(20:14 -0800)
Some gcc versions warn that ret may be used uninitialized in
sfq_enqueue(). It's a false positive, so let's annotate this.
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_sfq.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_sfq.c
b/net/sched/sch_sfq.c
index
ab8cfee
..
f3965df
100644
(file)
--- a/
net/sched/sch_sfq.c
+++ b/
net/sched/sch_sfq.c
@@
-281,7
+281,7
@@
sfq_enqueue(struct sk_buff *skb, struct Qdisc *sch)
struct sfq_sched_data *q = qdisc_priv(sch);
unsigned int hash;
sfq_index x;
- int
ret
;
+ int
uninitialized_var(ret)
;
hash = sfq_classify(skb, sch, &ret);
if (hash == 0) {