From: Yu Kuai Date: Sat, 5 Jun 2021 10:18:39 +0000 (+0800) Subject: sch_htb: fix doc warning in htb_class_mode() X-Git-Tag: v5.15~843^2~323 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e9559527a9d8cc061e884f6b237754d06711335;p=platform%2Fkernel%2Flinux-starfive.git 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: Yu Kuai Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index 869e59b..062ddf8 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c @@ -510,6 +510,8 @@ static inline s64 htb_hiwater(const struct htb_class *cl) /** * 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 * is not HTB_CAN_SEND then cl->pq_key is updated to time difference