Commit 1e955952 authored by Yu Kuai's avatar Yu Kuai Committed by David S. Miller

sch_htb: fix doc warning in htb_class_mode()

Add description for parameters of htb_class_mode()
to fix gcc W=1 warnings:

net/sched/sch_htb.c:507: warning: Function parameter or member 'cl' not described in 'htb_class_mode'
net/sched/sch_htb.c:507: warning: Function parameter or member 'diff' not described in 'htb_class_mode'
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4113be20
...@@ -510,6 +510,8 @@ static inline s64 htb_hiwater(const struct htb_class *cl) ...@@ -510,6 +510,8 @@ static inline s64 htb_hiwater(const struct htb_class *cl)
/** /**
* htb_class_mode - computes and returns current class mode * htb_class_mode - computes and returns current class mode
* @cl: the target class
* @diff: diff time in microseconds
* *
* It computes cl's mode at time cl->t_c+diff and returns it. If mode * It computes cl's mode at time cl->t_c+diff and returns it. If mode
* is not HTB_CAN_SEND then cl->pq_key is updated to time difference * is not HTB_CAN_SEND then cl->pq_key is updated to time difference
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment