From nobody Fri Jul 24 21:53:09 2026 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 375194908B8 for ; Fri, 24 Jul 2026 08:08:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784880525; cv=none; b=HKU4KIu1o+JEvuHqTpM95vlzrt9iiUuOQS7iUcS35PqIVD+iZREKxYnJhWMtqcOrbyokfy5WcTyrZlMxIsDlj9xlRl+RetqWIx1zNJIjaEHicqKW5M0JBCjXHf4SdmA+VEDGWRMu9x2Gu8eF+usO9f2uZ2wwYCGXjxxxMnCtM7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784880525; c=relaxed/simple; bh=O86RicdFStfo5mxExHlM3c9GvksAJlrnlskL0EJpE8A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Za8+3i+A6Ojc0cZTPox+l5NQBBCjq+5qs+oRgTMxIsFuTvjrrgGmJZ1kta2MxJS8e/c0HA/3popLA02AgL0XtZXTDZrKPMC3kqIu9g0bOV37BWyp9XscU+npVHcwvopSA0JygSVnDvHIxHlsZOmE0y/L1nwJla+UE1D0U1Ou+js= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: da7e062c873611f1aa26b74ffac11d73-20260724 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:a23b71f7-e8aa-4fde-957d-35e711556b59,IP:0,U RL:0,TC:0,Content:0,EDM:25,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:25 X-CID-META: VersionHash:e7bac3a,CLOUDID:0a2b2bf4b04257b66df7bb0150cda503,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102|123|850|865|898,TC:nil,Content:0|15| 50,EDM:5,IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0, OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: da7e062c873611f1aa26b74ffac11d73-20260724 X-User: luoliang@kylinos.cn Received: from localhost.localdomain [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 1325976147; Fri, 24 Jul 2026 16:08:28 +0800 From: luoliang@kylinos.cn To: Tejun Heo Cc: David Vernet , Andrea Righi , Changwoo Min , sched-ext@lists.linux.dev, linux-kernel@vger.kernel.org, Liang Luo Subject: [PATCH] sched_ext: Fix incorrect SCX_PICK_IDLE_CPU_* flag prefix in kernel-doc Date: Fri, 24 Jul 2026 16:08:24 +0800 Message-Id: <20260724080824.2483100-1-luoliang@kylinos.cn> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Liang Luo The flags passed to the pick-idle kfuncs are values from the scx_pick_idle_cpu_flags enum, whose members are prefixed SCX_PICK_IDLE_ (SCX_PICK_IDLE_CORE, SCX_PICK_IDLE_IN_NODE). Three kernel-doc comments in idle.c erroneously used %SCX_PICK_IDLE_CPU_* which does not correspond to any defined flag name, while the adjacent scx_bpf_pick_idle_cpu_node() correctly documents %SCX_PICK_IDLE_*. Fix the three occurrences to use the correct SCX_PICK_IDLE_* prefix. Signed-off-by: Liang Luo --- kernel/sched/ext/idle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sched/ext/idle.c b/kernel/sched/ext/idle.c index 16ebe3ab8647..079a47ca8c2f 100644 --- a/kernel/sched/ext/idle.c +++ b/kernel/sched/ext/idle.c @@ -1352,7 +1352,7 @@ __bpf_kfunc s32 scx_bpf_pick_idle_cpu_node(const stru= ct cpumask *cpus_allowed, /** * scx_bpf_pick_idle_cpu - Pick and claim an idle cpu * @cpus_allowed: Allowed cpumask - * @flags: %SCX_PICK_IDLE_CPU_* flags + * @flags: %SCX_PICK_IDLE_* flags * @aux: implicit BPF argument to access bpf_prog_aux hidden from BPF progs * * Pick and claim an idle cpu in @cpus_allowed. Returns the picked idle cpu @@ -1399,7 +1399,7 @@ __bpf_kfunc s32 scx_bpf_pick_idle_cpu(const struct cp= umask *cpus_allowed, * or pick any CPU from @node * @cpus_allowed: Allowed cpumask * @node: target NUMA node - * @flags: %SCX_PICK_IDLE_CPU_* flags + * @flags: %SCX_PICK_IDLE_* flags * @aux: implicit BPF argument to access bpf_prog_aux hidden from BPF progs * * Pick and claim an idle cpu in @cpus_allowed. If none is available, pick= any @@ -1450,7 +1450,7 @@ __bpf_kfunc s32 scx_bpf_pick_any_cpu_node(const struc= t cpumask *cpus_allowed, /** * scx_bpf_pick_any_cpu - Pick and claim an idle cpu if available or pick = any CPU * @cpus_allowed: Allowed cpumask - * @flags: %SCX_PICK_IDLE_CPU_* flags + * @flags: %SCX_PICK_IDLE_* flags * @aux: implicit BPF argument to access bpf_prog_aux hidden from BPF progs * * Pick and claim an idle cpu in @cpus_allowed. If none is available, pick= any --=20 2.43.0