sched: fix typos and repeated words in comments
Subsystems (3)
cover sched: fix typos and repeated words in comments
This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (2):
sched: fix typo "upto" in comments tools/sched_ext: fix repeated word 'be' in comment
kernel/sched/ext/ext.c | 4 ++-- tools/sched_ext/include/scx/common.bpf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 sched: fix typo "upto" in comments
Correct "upto" to "up to", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- kernel/sched/ext/ext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/ext/ext.c +2 -2
@@ -5840,7 +5840,7 @@ static void bypass_lb_node(struct scx_sched *sch, int node)/* * We don't want CPUs to have more than $nr_donor_target tasks and -* balancing to fill donee CPUs upto $nr_target. Once targets are +* balancing to fill donee CPUs up to $nr_target. Once targets are * calculated, find the donee CPUs. */ nr_target =DIV_ROUND_UP (nr_tasks, nr_cpus);
@@ -8816,7 +8816,7 @@ __bpf_kfunc_start_defs();* task is inserted. * * When called from ops.dispatch(), there are no restrictions on @p or @dsq_id -* and this function can be called upto ops.dispatch_max_batch times to insert +* and this function can be called up to ops.dispatch_max_batch times to insert * multiple tasks. scx_bpf_dispatch_nr_slots() returns the number of the * remaining slots. scx_bpf_dsq_move_to_local() flushes the batch and resets the * counter.
Signature · 1 line
2.48.1
PATCH 2/2 tools/sched_ext: fix repeated word 'be' in comment
In reply to Hemanth SelamDrop the second 'be', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- tools/sched_ext/include/scx/common.bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/sched_ext/include/scx/common.bpf.h +1 -1
@@ -306,7 +306,7 @@ BPF_PROG(name, ##args)* Similar to MEMBER_VPTR() but is intended for use with arrays where the * element count needs to be explicit. * It can be used in cases where a global array is defined with an initial -* size but is intended to be be resized before loading the BPF program. +* size but is intended to be resized before loading the BPF program. * Without this version of the macro, MEMBER_VPTR() will use the compile time * size of the array to compute the max, which will result in rejection by * the verifier.
Signature · 1 line
2.48.1
Tejun Heo
reviewerHello,
Quoted 3 lines
Hemanth Selam (2):
sched: fix typo "upto" in commentstools/sched_ext: fix repeated word 'be' in comment
Applied 1-2 to sched_ext/for-7.4.
Thanks.
Signature · 1 line
tejun