]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: fix some typos in tools/testing/selftests
authorChelsy Ratnawat <chelsyratnawat2001@gmail.com>
Sat, 3 May 2025 21:19:59 +0000 (14:19 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:54:13 +0000 (17:54 -0700)
Fix multiple spelling errors:

 - "rougly" -> "roughly"
 - "fielesystems" -> "filesystems"
 - "Can'" -> "Can't"

Link: https://lkml.kernel.org/r/20250503211959.507815-1-chelsyratnawat2001@gmail.com
Signed-off-by: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/filesystems/file_stressor.c
tools/testing/selftests/mm/gup_longterm.c
tools/testing/selftests/thermal/intel/power_floor/power_floor_test.c
tools/testing/selftests/thermal/intel/workload_hint/workload_hint_test.c

index 1136f93a9977c278daeed6f9ea04ade8b7511512..01dd89f8e52ff875a93eba956350cc5dfa880e6e 100644 (file)
@@ -156,7 +156,7 @@ TEST_F_TIMEOUT(file_stressor, slab_typesafe_by_rcu, 900 * 2)
                        ssize_t nr_read;
 
                        /*
-                        * Concurrently read /proc/<pid>/fd/ which rougly does:
+                        * Concurrently read /proc/<pid>/fd/ which roughly does:
                         *
                         * f = fget_task_next(p, &fd);
                         * if (!f)
index 21595b20bbc391a0e5d0ab0563ac4ce5e1e0069f..d50ada0c7dbf695e3d52d1b68cab5742f1e48db7 100644 (file)
@@ -158,7 +158,7 @@ static void do_test(int fd, size_t size, enum test_type type, bool shared)
                /*
                 * R/O pinning or pinning in a private mapping is always
                 * expected to work. Otherwise, we expect long-term R/W pinning
-                * to only succeed for special fielesystems.
+                * to only succeed for special filesystems.
                 */
                should_work = !shared || !rw ||
                              fs_supports_writable_longterm_pinning(fs_type);
index 0326b39a11b91be658db087caa48d470921d9da9..30cab5d425d2103822c23ad6b78f364439bd5fbe 100644 (file)
@@ -56,7 +56,7 @@ int main(int argc, char **argv)
        }
 
        if (write(fd, "1\n", 2) < 0) {
-               perror("Can' enable power floor notifications\n");
+               perror("Can't enable power floor notifications\n");
                exit(1);
        }
 
index 217c3a641c5379c6e4384c867eb833fb02081909..a400972329675aa8e07a87df39e7908c78d7aba7 100644 (file)
@@ -37,7 +37,7 @@ void workload_hint_exit(int signum)
        }
 
        if (write(fd, "0\n", 2) < 0) {
-               perror("Can' disable workload hints\n");
+               perror("Can't disable workload hints\n");
                exit(1);
        }
 
@@ -99,7 +99,7 @@ int main(int argc, char **argv)
        }
 
        if (write(fd, "1\n", 2) < 0) {
-               perror("Can' enable workload hints\n");
+               perror("Can't enable workload hints\n");
                exit(1);
        }