]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
sch_htb: fix doc warning in htb_class_mode()
authorYu Kuai <yukuai3@huawei.com>
Sat, 5 Jun 2021 10:18:39 +0000 (18:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2021 19:28:40 +0000 (12:28 -0700)
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 <yukuai3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c

index 869e59be099308d04786a0e9834057752f6816ef..062ddf88ce228ddd51b31e9e2bf3e456a27ecddc 100644 (file)
@@ -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