]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc/util: remove unused argument from print_tm
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 13 Apr 2024 22:04:03 +0000 (15:04 -0700)
committerDavid Ahern <dsahern@kernel.org>
Sun, 21 Apr 2024 01:41:56 +0000 (01:41 +0000)
File argument no longer used.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
21 files changed:
tc/m_bpf.c
tc/m_connmark.c
tc/m_csum.c
tc/m_ct.c
tc/m_ctinfo.c
tc/m_gact.c
tc/m_gate.c
tc/m_ife.c
tc/m_mirred.c
tc/m_mpls.c
tc/m_nat.c
tc/m_pedit.c
tc/m_police.c
tc/m_sample.c
tc/m_simple.c
tc/m_skbedit.c
tc/m_skbmod.c
tc/m_tunnel_key.c
tc/m_vlan.c
tc/tc_util.c
tc/tc_util.h

index 9dba4be58118d2a02fb110cafe52ad04bde340d0..3083ff689bab2df91d5a686b7666b03f0323b6ee 100644 (file)
@@ -200,7 +200,7 @@ static int bpf_print_opt(const struct action_util *au, FILE *f, struct rtattr *a
                if (tb[TCA_ACT_BPF_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_ACT_BPF_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index 8b5630f66c5e1fc7f65113e856a5df11f48d6cca..19715016b2f8d52b9e30a3570d786f10dc6ac513 100644 (file)
@@ -123,7 +123,7 @@ static int print_connmark(const struct action_util *au, FILE *f, struct rtattr *
                if (tb[TCA_CONNMARK_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_CONNMARK_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        print_nl();
index 21204e5bf7b6f857d811aba65496c8fd364705d1..9f4c0078412ec89352b27c0d91790d14a542326d 100644 (file)
@@ -213,7 +213,7 @@ print_csum(const struct action_util *au, FILE *f, struct rtattr *arg)
                if (tb[TCA_CSUM_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_CSUM_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        print_nl();
index 4b7d322c8d4f07e245509c29d2e7d18e29a366d1..f1f47aca0ca07e2c8444fad0e6c9e8d6a362572a 100644 (file)
--- a/tc/m_ct.c
+++ b/tc/m_ct.c
@@ -534,7 +534,7 @@ static int print_ct(const struct action_util *au, FILE *f, struct rtattr *arg)
                if (tb[TCA_CT_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_CT_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        print_nl();
index dbd5c0b32c506de10315b002257a6e0b54880986..62f0b7d5279b73feb7e13147f0f40478591f681c 100644 (file)
@@ -166,7 +166,7 @@ static void print_ctinfo_stats(FILE *f, struct rtattr *tb[TCA_CTINFO_MAX + 1])
        if (tb[TCA_CTINFO_TM]) {
                tm = RTA_DATA(tb[TCA_CTINFO_TM]);
 
-               print_tm(f, tm);
+               print_tm(tm);
        }
 
        if (tb[TCA_CTINFO_STATS_DSCP_SET])
index 670d59f03ee6e30d27a9cdecff7e9528e661fc48..ce32fe306958b101f973a3aa4fc53966bb1593ae 100644 (file)
@@ -203,7 +203,7 @@ print_gact(const struct action_util *au, FILE *f, struct rtattr *arg)
                if (tb[TCA_GACT_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_GACT_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        print_nl();
index 33ee63bb316c52ba7124266eee4a8d56fa233220..5d8639f9fd459667e55698e55a379d268f29b2e5 100644 (file)
@@ -527,7 +527,7 @@ static int print_gate(const struct action_util *au, FILE *f, struct rtattr *arg)
                if (tb[TCA_GATE_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_GATE_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index dfd85561e1c162c435ffc47ac9ce80d2c5b00fa9..f6f41b5469b56086ed48bc6b0134b5c5b0b71f5d 100644 (file)
@@ -315,7 +315,7 @@ static int print_ife(const struct action_util *au, FILE *f, struct rtattr *arg)
                if (tb[TCA_IFE_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_IFE_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index cfecd59c7551deaa099d898823fe4a5e5ec0d491..b3da74f2e8cbad00f9a29dac7b74f88f9c767189 100644 (file)
@@ -348,7 +348,7 @@ print_mirred(const struct action_util *au, FILE *f, struct rtattr *arg)
                if (tb[TCA_MIRRED_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_MIRRED_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        print_nl();
index ca3a18a9a1effc163430f287d649efd4fd79cc4a..5ef7d45f22d4f59938de4acb3918bd9da9bdf11e 100644 (file)
@@ -283,7 +283,7 @@ static int print_mpls(const struct action_util *au, FILE *f, struct rtattr *arg)
                if (tb[TCA_MPLS_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_MPLS_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index a3f86e19016611c380f834ffac1310ba17e4349e..8218a699f4a9b17fde0333ae7215dcc49ed21b70 100644 (file)
@@ -179,7 +179,7 @@ print_nat(const struct action_util *au, FILE * f, struct rtattr *arg)
                if (tb[TCA_NAT_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_NAT_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index 5c84a9087bdbc01194231d1b304ac055ff9de206..78b051ec74a17fedce367dc7f709655661bc0626 100644 (file)
@@ -801,7 +801,7 @@ static int print_pedit(const struct action_util *au, FILE *f, struct rtattr *arg
                if (tb[TCA_PEDIT_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_PEDIT_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        open_json_array(PRINT_JSON, "keys");
index 8d6887eefc7df15a5e9291fc4e7feb7b30a33fa4..f9a5753b6b83ebde5f813a66c0d8b3feb54af37a 100644 (file)
@@ -347,7 +347,7 @@ static int print_police(const struct action_util *a, FILE *f, struct rtattr *arg
                if (tb[TCA_POLICE_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_POLICE_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        print_nl();
index 642ec3a6ea7ed3f54cb35ba7801665b29933730f..092d35d9e4451d9591d4f7b0148f8a1ec418cd76 100644 (file)
@@ -171,7 +171,7 @@ static int print_sample(const struct action_util *au, FILE *f, struct rtattr *ar
                if (tb[TCA_SAMPLE_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_SAMPLE_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        print_nl();
index 55f3444176ad734065a7be761962113f0d90a4f1..a3afc12eda2188529e62e5e71ab72903bc14443d 100644 (file)
@@ -189,7 +189,7 @@ static int print_simple(const struct action_util *au, FILE *f, struct rtattr *ar
                if (tb[TCA_DEF_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_DEF_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
        print_nl();
index b55c3249e6fafe906888ef395f857932f90acb07..16511b0a15bf9e7162595be870ced29991cd4878 100644 (file)
@@ -250,7 +250,7 @@ static int print_skbedit(const struct action_util *au, FILE *f, struct rtattr *a
                if (tb[TCA_SKBEDIT_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_SKBEDIT_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index af64e99de8173a619adfbb7265538f9ca2fe9185..d71f2118588366de88bb972c652ea7d3e34be341 100644 (file)
@@ -223,7 +223,7 @@ static int print_skbmod(const struct action_util *au, FILE *f, struct rtattr *ar
                if (tb[TCA_SKBMOD_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_SKBMOD_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index 2032a72194cdec8cb9b323398740fdaec439d4d7..2a571a6b71b3facd3a92e1cfa88e7a0bae897b63 100644 (file)
@@ -742,7 +742,7 @@ static int print_tunnel_key(const struct action_util *au, FILE *f, struct rtattr
                if (tb[TCA_TUNNEL_KEY_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_TUNNEL_KEY_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index 40d62fa0f282bc8b1828bd1a3fcd410ba0b2b64b..f383173f5bb95e7c6dbc362cd32160fe23eed00d 100644 (file)
@@ -293,7 +293,7 @@ static int print_vlan(const struct action_util *au, FILE *f, struct rtattr *arg)
                if (tb[TCA_VLAN_TM]) {
                        struct tcf_t *tm = RTA_DATA(tb[TCA_VLAN_TM]);
 
-                       print_tm(f, tm);
+                       print_tm(tm);
                }
        }
 
index a347a2d5038b30034d56cb48eac2b50fd80f3e9f..a2d1d1dfbdd0f2b057284883b2d5d45e2e18f45e 100644 (file)
@@ -645,7 +645,7 @@ const char *get_clock_name(clockid_t clockid)
        return "invalid";
 }
 
-void print_tm(FILE *f, const struct tcf_t *tm)
+void print_tm(const struct tcf_t *tm)
 {
        int hz = get_user_hz();
 
index 250cf33a6d9683cc0f7afc875b108d6275e3d2d5..43032e78191cea7b4209b23af07661c9c7f750a7 100644 (file)
@@ -114,7 +114,7 @@ void print_action_control(FILE *f, const char *prefix,
 int police_print_xstats(const struct action_util *a, FILE *f, struct rtattr *tb);
 int tc_print_action(FILE *f, const struct rtattr *tb, unsigned short tot_acts);
 int parse_action(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n);
-void print_tm(FILE *f, const struct tcf_t *tm);
+void print_tm(const struct tcf_t *tm);
 int prio_print_opt(const struct qdisc_util *qu, FILE *f, struct rtattr *opt);
 
 int cls_names_init(char *path);