]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
tools/sched_ext: scx_central: Remove unused '-p' option
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Sun, 22 Feb 2026 13:08:25 +0000 (21:08 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 23 Feb 2026 17:45:30 +0000 (07:45 -1000)
The '-p' option is defined in getopt() but not handled in the switch
statement or documented in the help text. Providing '-p' currently
triggers the default error path.

Remove it to sync the optstring with the actual implementation.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/scx_central.c

index 2a805f1d6c8fbcd64d9b707bb803c61afb773e40..710fa03376e256d8a894dc4803346261fcaab6f0 100644 (file)
@@ -66,7 +66,7 @@ restart:
        assert(skel->rodata->nr_cpu_ids > 0);
        assert(skel->rodata->nr_cpu_ids <= INT32_MAX);
 
-       while ((opt = getopt(argc, argv, "s:c:pvh")) != -1) {
+       while ((opt = getopt(argc, argv, "s:c:vh")) != -1) {
                switch (opt) {
                case 's':
                        skel->rodata->slice_ns = strtoull(optarg, NULL, 0) * 1000;