]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
sch_htb: fix doc warning in htb_add_to_wait_tree()
authorYu Kuai <yukuai3@huawei.com>
Sat, 5 Jun 2021 10:18:33 +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_add_to_wait_tree() to fix
gcc W=1 warnings:

net/sched/sch_htb.c:308: warning: Function parameter or member 'q' not described in 'htb_add_to_wait_tree'
net/sched/sch_htb.c:308: warning: Function parameter or member 'cl' not described in 'htb_add_to_wait_tree'
net/sched/sch_htb.c:308: warning: Function parameter or member 'delay' not described in 'htb_add_to_wait_tree'

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

index 4f9304567dcce9c76a965a47674f7fc79733b1c3..4eeef342c3c6715a87f674860f3304f595b1fae9 100644 (file)
@@ -301,6 +301,9 @@ static void htb_add_to_id_tree(struct rb_root *root,
 
 /**
  * htb_add_to_wait_tree - adds class to the event queue with delay
+ * @q: the priority event queue
+ * @cl: the class to add
+ * @delay: delay in microseconds
  *
  * The class is added to priority event queue to indicate that class will
  * change its mode in cl->pq_key microseconds. Make sure that class is not