]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
tools/sched_ext: scx_sdt: Remove unused '-f' option
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Sun, 22 Feb 2026 13:08:26 +0000 (21:08 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 23 Feb 2026 17:45:34 +0000 (07:45 -1000)
The '-f' option is defined in getopt() but not handled in the switch
statement or documented in the help text. Providing '-f' 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_sdt.c

index d8ca9aa316a586a1ce9993c6f9344fa58142c8fd..a36405d8df300f3f395ef7fa1834ff560d13feed 100644 (file)
@@ -54,7 +54,7 @@ restart:
        optind = 1;
        skel = SCX_OPS_OPEN(sdt_ops, scx_sdt);
 
-       while ((opt = getopt(argc, argv, "fvh")) != -1) {
+       while ((opt = getopt(argc, argv, "vh")) != -1) {
                switch (opt) {
                case 'v':
                        verbose = true;