sch_htb: fix doc warning in htb_activate()
authorYu Kuai <yukuai3@huawei.com>
Sat, 5 Jun 2021 10:18:41 +0000 (18:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 19:28:41 +0000 (12:28 -0700)
Add description for parameters of htb_activate()
to fix gcc W=1 warnings:

net/sched/sch_htb.c:562: warning: Function parameter or member 'q' not described in 'htb_activate'
net/sched/sch_htb.c:562: warning: Function parameter or member 'cl' not described in 'htb_activate'

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c

index 875ef6c..1ee47de 100644 (file)
@@ -575,6 +575,8 @@ htb_change_class_mode(struct htb_sched *q, struct htb_class *cl, s64 *diff)
 
 /**
  * htb_activate - inserts leaf cl into appropriate active feeds
+ * @q: the priority event queue
+ * @cl: the target class
  *
  * Routine learns (new) priority of leaf and activates feed chain
  * for the prio. It can be called on already active leaf safely.