diff options
author | Yu Kuai <yukuai3@huawei.com> | 2021-06-05 18:18:43 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-07 12:28:41 -0700 |
commit | 0e5c90848a28edc726c6badf6875790830c9428c (patch) | |
tree | ada8b1af971e9bf9583b293c155ff00e74b24658 /net | |
parent | 9a034f25e4721c0f021c33ca0788c7dc13bed290 (diff) |
sch_htb: fix doc warning in htb_charge_class()
Add description for parameters of htb_charge_class()
to fix gcc W=1 warnings:
net/sched/sch_htb.c:663: warning: Function parameter or member 'q' not described in 'htb_charge_class'
net/sched/sch_htb.c:663: warning: Function parameter or member 'cl' not described in 'htb_charge_class'
net/sched/sch_htb.c:663: warning: Function parameter or member 'level' not described in 'htb_charge_class'
net/sched/sch_htb.c:663: warning: Function parameter or member 'skb' not described in 'htb_charge_class'
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_htb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index 9d4c5370257d..a6cd3f18ff87 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c @@ -675,6 +675,10 @@ static inline void htb_accnt_ctokens(struct htb_class *cl, int bytes, s64 diff) /** * htb_charge_class - charges amount "bytes" to leaf and ancestors + * @q: the priority event queue + * @cl: the class to start iterate + * @level: the minimum level to account + * @skb: the socket buffer * * Routine assumes that packet "bytes" long was dequeued from leaf cl * borrowing from "level". It accounts bytes to ceil leaky bucket for |