All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc
@ 2026-08-25  5:50 luoliang
  2026-08-25  5:58 ` sashiko-bot
  2026-08-31 17:31 ` Tejun Heo
  0 siblings, 2 replies; 4+ messages in thread
From: luoliang @ 2026-08-25  5:50 UTC (permalink / raw)
  To: Tejun Heo
  Cc: David Vernet, Andrea Righi, Changwoo Min, sched-ext, linux-kernel,
	Liang Luo

From: Liang Luo <luoliang@kylinos.cn>

Commit 13f1eae3b662 ("sched_ext: Synchronize slice and dsq_vtime
writes") added the slice and vtime parameters to finish_dispatch() but
did not update its kernel-doc, which produces warnings:

  Warning: function parameter 'slice' not described in 'finish_dispatch'
  Warning: function parameter 'vtime' not described in 'finish_dispatch'

Describe both parameters using the same wording as
dispatch_to_local_dsq(), which receives the same values.

Signed-off-by: Liang Luo <luoliang@kylinos.cn>
---
 kernel/sched/ext/ext.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/sched/ext/ext.c b/kernel/sched/ext/ext.c
index 10af28a9f2c0..a40a6d73b413 100644
--- a/kernel/sched/ext/ext.c
+++ b/kernel/sched/ext/ext.c
@@ -2806,6 +2806,8 @@ static void dispatch_to_local_dsq(struct scx_sched *sch, struct rq *rq,
  * @p: task to finish dispatching
  * @qseq_at_dispatch: qseq when @p started getting dispatched
  * @dsq_id: destination DSQ ID
+ * @slice: slice carried by the insert verdict, 0 keeps the current value
+ * @vtime: vtime carried by the insert verdict, committed on PRIQ inserts
  * @enq_flags: %SCX_ENQ_*
  *
  * Dispatching to local DSQs may need to wait for queueing to complete or
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc
  2026-08-25  5:50 [PATCH] sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc luoliang
@ 2026-08-25  5:58 ` sashiko-bot
  2026-08-25  8:00   ` Liang Luo
  2026-08-31 17:31 ` Tejun Heo
  1 sibling, 1 reply; 4+ messages in thread
From: sashiko-bot @ 2026-08-25  5:58 UTC (permalink / raw)
  To: luoliang; +Cc: sched-ext

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Adding kernel-doc descriptions for non-existent parameters `@slice` and `@vtime` causes an "Excess function parameter" kernel-doc warning.
--

--- Patch [1]: [PATCH] sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc ---
commit 41530400fea7676e4713b34dcf07ebfd18e9b839
Author: Liang Luo <luoliang@kylinos.cn>

sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc

This commit attempts to fix kernel-doc warnings by adding slice and vtime
parameter descriptions to the finish_dispatch() comment block.

> diff --git a/kernel/sched/ext/ext.c b/kernel/sched/ext/ext.c
> index 18183062f751c..84b2bb05ab90b 100644
> --- a/kernel/sched/ext/ext.c
> +++ b/kernel/sched/ext/ext.c
> @@ -2664,6 +2664,8 @@ static void dispatch_to_local_dsq(struct scx_sched *sch, struct rq *rq,
>   * @p: task to finish dispatching
>   * @qseq_at_dispatch: qseq when @p started getting dispatched
>   * @dsq_id: destination DSQ ID
> + * @slice: slice carried by the insert verdict, 0 keeps the current value
> + * @vtime: vtime carried by the insert verdict, committed on PRIQ inserts

[Severity: Low]
Will this trigger "Excess function parameter" kernel-doc warnings?

Looking at the code, finish_dispatch() does not appear to have slice or vtime
parameters in its signature:

static void finish_dispatch(struct scx_sched *sch, struct rq *rq,
                            struct task_struct *p,
                            unsigned long qseq_at_dispatch,
                            u64 dsq_id, u64 enq_flags)

>   * @enq_flags: %SCX_ENQ_*
>   *
>   * Dispatching to local DSQs may need to wait for queueing to complete or

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260825055053.2295139-1-luoliang@kylinos.cn?part=1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc
  2026-08-25  5:58 ` sashiko-bot
@ 2026-08-25  8:00   ` Liang Luo
  0 siblings, 0 replies; 4+ messages in thread
From: Liang Luo @ 2026-08-25  8:00 UTC (permalink / raw)
  To: sashiko-bot; +Cc: luoliang, sashiko-reviews, sched-ext

On Tue, Aug 25, 2026 at 05:58:49AM +0000, sashiko-bot@kernel.org wrote:
> Looking at the code, finish_dispatch() does not appear to have slice or
> vtime parameters in its signature:
> 
> static void finish_dispatch(struct scx_sched *sch, struct rq *rq,
>                             struct task_struct *p,
>                             unsigned long qseq_at_dispatch,
>                             u64 dsq_id, u64 enq_flags)

The review appears to be against a tree predating commit 13f1eae3b662
("sched_ext: Synchronize slice and dsq_vtime writes"), which added the
slice and vtime parameters to finish_dispatch(). In current mainline,
the signature is:

    static void finish_dispatch(struct scx_sched *sch, struct rq *rq,
                                struct task_struct *p,
                                unsigned long qseq_at_dispatch, u64 dsq_id,
                                u64 slice, u64 vtime, u64 enq_flags)

scripts/kernel-doc -none kernel/sched/ext/ext.c reports the two
"function parameter not described" warnings before this patch and
produces no warnings after it, so no "Excess function parameter"
warning is introduced.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc
  2026-08-25  5:50 [PATCH] sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc luoliang
  2026-08-25  5:58 ` sashiko-bot
@ 2026-08-31 17:31 ` Tejun Heo
  1 sibling, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2026-08-31 17:31 UTC (permalink / raw)
  To: Liang Luo
  Cc: David Vernet, Andrea Righi, Changwoo Min, sched-ext, linux-kernel

Applied to sched_ext/for-7.3-fixes.

Thanks.

--
tejun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-31 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25  5:50 [PATCH] sched_ext: Fix missing @slice and @vtime descriptions in finish_dispatch() kernel-doc luoliang
2026-08-25  5:58 ` sashiko-bot
2026-08-25  8:00   ` Liang Luo
2026-08-31 17:31 ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.