Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/futex: Fix typos and grammar in futex_priv_hash

Fix multiple typos and small grammar issues in help text, comments and test
messages in the futex_priv_hash test.

Signed-off-by: Gopi Krishna Menon <krishnagopi487@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Link: https://lore.kernel.org/20250827130011.677600-5-bigeasy@linutronix.de

authored by

Gopi Krishna Menon and committed by
Borislav Petkov (AMD)
5fdb877b f8ef9c24

+4 -4
+4 -4
tools/testing/selftests/futex/functional/futex_priv_hash.c
··· 188 188 if (ret != 0) 189 189 ksft_exit_fail_msg("pthread_join() failed: %d, %m\n", ret); 190 190 191 - /* First thread, has to initialiaze private hash */ 191 + /* First thread, has to initialize private hash */ 192 192 futex_slots1 = futex_hash_slots_get(); 193 193 if (futex_slots1 <= 0) { 194 194 ksft_print_msg("Current hash buckets: %d\n", futex_slots1); ··· 256 256 257 257 futex_hash_slots_set_verify(2); 258 258 join_max_threads(); 259 - ksft_test_result(counter == MAX_THREADS, "Created of waited for %d of %d threads\n", 259 + ksft_test_result(counter == MAX_THREADS, "Created and waited for %d of %d threads\n", 260 260 counter, MAX_THREADS); 261 261 counter = 0; 262 - /* Once the user set something, auto reisze must be disabled */ 262 + /* Once the user set something, auto resize must be disabled */ 263 263 ret = pthread_barrier_init(&barrier_main, NULL, MAX_THREADS); 264 264 265 265 create_max_threads(thread_lock_fn); 266 266 join_max_threads(); 267 267 268 268 ret = futex_hash_slots_get(); 269 - ksft_test_result(ret == 2, "No more auto-resize after manaul setting, got %d\n", 269 + ksft_test_result(ret == 2, "No more auto-resize after manual setting, got %d\n", 270 270 ret); 271 271 272 272 futex_hash_slots_set_must_fail(1 << 29);