selftests: fix typos and repeated words in comments
Subsystems (6)
cover selftests: 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):
selftests: fix typos in comments
selftests: core: fix repeated word 'and' in comment
tools/testing/selftests/amd-pstate/tbench.sh | 4 ++-- tools/testing/selftests/core/close_range_test.c | 2 +- tools/testing/selftests/proc/setns-dcache.c | 2 +- tools/testing/selftests/proc/setns-sysvipc.c | 2 +- tools/testing/selftests/resctrl/resctrlfs.c | 6 +++--- tools/testing/selftests/ublk/kublk.h | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 selftests: fix typos in comments
Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- tools/testing/selftests/amd-pstate/tbench.sh | 4 ++-- tools/testing/selftests/proc/setns-dcache.c | 2 +- tools/testing/selftests/proc/setns-sysvipc.c | 2 +- tools/testing/selftests/resctrl/resctrlfs.c | 6 +++--- tools/testing/selftests/ublk/kublk.h | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-)
tools/testing/selftests/amd-pstate/tbench.sh +2 -2
@@ -103,7 +103,7 @@ parse_tbench() en_sum=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum}' $OUTFILE_TBENCH-energy-$1-$2.log) printf "Tbench-$1-#$2 power consumption(J): $en_sum\n" | tee -a $OUTFILE_TBENCH.result - # Permance is throughput per second, denoted T/t, where T is throught rendered in t seconds. + # Permance is throughput per second, denoted T/t, where T is through rendered in t seconds. # It is well known that P=E/t, where P is power measured in watts(W), E is energy measured in joules(J), # and t is time measured in seconds(s). This means that performance per watt becomes # T/t T/t T
@@ -161,7 +161,7 @@ gather_tbench() avg_en=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum/'$LOOP_TIMES'}' $OUTFILE_TBENCH-energy-$1.log) printf "Tbench-$1 avg power consumption(J): $avg_en\n" | tee -a $OUTFILE_TBENCH.result - # Permance is throughput per second, denoted T/t, where T is throught rendered in t seconds. + # Permance is throughput per second, denoted T/t, where T is through rendered in t seconds. # It is well known that P=E/t, where P is power measured in watts(W), E is energy measured in joules(J), # and t is time measured in seconds(s). This means that performance per watt becomes # T/t T/t T
tools/testing/selftests/proc/setns-dcache.c +1 -1
@@ -50,7 +50,7 @@ int main(void)atexit (f); -/* Check for priviledges and syscall availability straight away. */ +/* Check for privileges and syscall availability straight away. */ if (unshare (CLONE_NEWNET ) ==-1 ) {if (errno ==ENOSYS || errno ==EPERM ) {return 4 ;
tools/testing/selftests/proc/setns-sysvipc.c +1 -1
@@ -49,7 +49,7 @@ int main(void)atexit (f); -/* Check for priviledges and syscall availability straight away. */ +/* Check for privileges and syscall availability straight away. */ if (unshare (CLONE_NEWIPC ) ==-1 ) {if (errno ==ENOSYS || errno ==EPERM ) {return 4 ;
tools/testing/selftests/resctrl/resctrlfs.c +3 -3
@@ -517,8 +517,8 @@ int get_mask_no_shareable(const char *cache_type, unsigned long *mask)/* * taskset_benchmark - Taskset PID (i.e. benchmark) to a specified cpu -* @bm_pid: PID that should be binded -* @cpu_no: CPU number at which the PID would be binded +* @bm_pid: PID that should be bound +* @cpu_no: CPU number at which the PID would be bound * @old_affinity: When not NULL, set to old CPU affinity * * Return: 0 on success, < 0 on error.
@@ -693,7 +693,7 @@ int write_bm_pid_to_resctrl(pid_t bm_pid, const char *ctrlgrp, const char *mongr* write_schemata - Update schemata of a con_mon grp * @ctrlgrp: Name of the con_mon grp * @schemata: Schemata that should be updated to -* @cpu_no: CPU number that the benchmark PID is binded to +* @cpu_no: CPU number that the benchmark PID is bound to * @resource: Resctrl resource (Eg: MB, L3, L2, etc.) * * Update schemata of a con_mon grp *only* if requested resctrl resource is
tools/testing/selftests/ublk/kublk.h +1 -1
@@ -257,7 +257,7 @@ struct ublk_thread {unsigned short nr_bufs;unsigned short auto_buf_stride; -/* followings are for BATCH_IO */ +/* following are for BATCH_IO */ unsigned short commit_buf_start;unsigned char commit_buf_elem_size;/*
Signature · 1 line
2.48.1
PATCH 2/2 selftests: core: fix repeated word 'and' in comment
In reply to Hemanth SelamDrop the second 'and', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- tools/testing/selftests/core/close_range_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/core/close_range_test.c +1 -1
@@ -506,7 +506,7 @@ TEST(close_range_cloexec_unshare_syzbot)/* * Create a huge gap in the fd table. When we now call -* CLOSE_RANGE_UNSHARE with a shared fd table and and with ~0U as upper +* CLOSE_RANGE_UNSHARE with a shared fd table and with ~0U as upper * bound the kernel will only copy up to fd1 file descriptors into the * new fd table. If the kernel is buggy and doesn't handle * CLOSE_RANGE_CLOEXEC correctly it will not have copied all file
Signature · 1 line
2.48.1