Skip to content

Commit

Permalink
sch_htb: fix doc warning in htb_do_events()
Browse files Browse the repository at this point in the history
Add description for parameters of htb_do_events()
to fix gcc W=1 warnings:

net/sched/sch_htb.c:708: warning: Function parameter or member 'q' not described in 'htb_do_events'
net/sched/sch_htb.c:708: warning: Function parameter or member 'level' not described in 'htb_do_events'
net/sched/sch_htb.c:708: warning: Function parameter or member 'start' not described in 'htb_do_events'

Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
YuKuai-huawei authored and davem330 committed Jun 7, 2021
1 parent 0e5c908 commit 2c3ee53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,9 @@ static void htb_charge_class(struct htb_sched *q, struct htb_class *cl,

/**
* htb_do_events - make mode changes to classes at the level
* @q: the priority event queue
* @level: which wait_pq in 'q->hlevel'
* @start: start jiffies
*
* Scans event queue for pending events and applies them. Returns time of
* next pending event (0 for no event in pq, q->now for too many events).
Expand Down

0 comments on commit 2c3ee53

Please sign in to comment.