From: Stephen Hemminger Date: Sat, 13 Apr 2024 22:04:03 +0000 (-0700) Subject: tc/util: remove unused argument from print_tm X-Git-Tag: v6.10.0~10^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf4022ebe64fa0ab05f69a0b7ee72aed1e00da8c;p=thirdparty%2Fiproute2.git tc/util: remove unused argument from print_tm File argument no longer used. Signed-off-by: Stephen Hemminger Signed-off-by: David Ahern --- diff --git a/tc/m_bpf.c b/tc/m_bpf.c index 9dba4be5..3083ff68 100644 --- a/tc/m_bpf.c +++ b/tc/m_bpf.c @@ -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); } } diff --git a/tc/m_connmark.c b/tc/m_connmark.c index 8b5630f6..19715016 100644 --- a/tc/m_connmark.c +++ b/tc/m_connmark.c @@ -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(); diff --git a/tc/m_csum.c b/tc/m_csum.c index 21204e5b..9f4c0078 100644 --- a/tc/m_csum.c +++ b/tc/m_csum.c @@ -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(); diff --git a/tc/m_ct.c b/tc/m_ct.c index 4b7d322c..f1f47aca 100644 --- 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(); diff --git a/tc/m_ctinfo.c b/tc/m_ctinfo.c index dbd5c0b3..62f0b7d5 100644 --- a/tc/m_ctinfo.c +++ b/tc/m_ctinfo.c @@ -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]) diff --git a/tc/m_gact.c b/tc/m_gact.c index 670d59f0..ce32fe30 100644 --- a/tc/m_gact.c +++ b/tc/m_gact.c @@ -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(); diff --git a/tc/m_gate.c b/tc/m_gate.c index 33ee63bb..5d8639f9 100644 --- a/tc/m_gate.c +++ b/tc/m_gate.c @@ -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); } } diff --git a/tc/m_ife.c b/tc/m_ife.c index dfd85561..f6f41b54 100644 --- a/tc/m_ife.c +++ b/tc/m_ife.c @@ -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); } } diff --git a/tc/m_mirred.c b/tc/m_mirred.c index cfecd59c..b3da74f2 100644 --- a/tc/m_mirred.c +++ b/tc/m_mirred.c @@ -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(); diff --git a/tc/m_mpls.c b/tc/m_mpls.c index ca3a18a9..5ef7d45f 100644 --- a/tc/m_mpls.c +++ b/tc/m_mpls.c @@ -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); } } diff --git a/tc/m_nat.c b/tc/m_nat.c index a3f86e19..8218a699 100644 --- a/tc/m_nat.c +++ b/tc/m_nat.c @@ -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); } } diff --git a/tc/m_pedit.c b/tc/m_pedit.c index 5c84a908..78b051ec 100644 --- a/tc/m_pedit.c +++ b/tc/m_pedit.c @@ -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"); diff --git a/tc/m_police.c b/tc/m_police.c index 8d6887ee..f9a5753b 100644 --- a/tc/m_police.c +++ b/tc/m_police.c @@ -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(); diff --git a/tc/m_sample.c b/tc/m_sample.c index 642ec3a6..092d35d9 100644 --- a/tc/m_sample.c +++ b/tc/m_sample.c @@ -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(); diff --git a/tc/m_simple.c b/tc/m_simple.c index 55f34441..a3afc12e 100644 --- a/tc/m_simple.c +++ b/tc/m_simple.c @@ -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(); diff --git a/tc/m_skbedit.c b/tc/m_skbedit.c index b55c3249..16511b0a 100644 --- a/tc/m_skbedit.c +++ b/tc/m_skbedit.c @@ -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); } } diff --git a/tc/m_skbmod.c b/tc/m_skbmod.c index af64e99d..d71f2118 100644 --- a/tc/m_skbmod.c +++ b/tc/m_skbmod.c @@ -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); } } diff --git a/tc/m_tunnel_key.c b/tc/m_tunnel_key.c index 2032a721..2a571a6b 100644 --- a/tc/m_tunnel_key.c +++ b/tc/m_tunnel_key.c @@ -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); } } diff --git a/tc/m_vlan.c b/tc/m_vlan.c index 40d62fa0..f383173f 100644 --- a/tc/m_vlan.c +++ b/tc/m_vlan.c @@ -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); } } diff --git a/tc/tc_util.c b/tc/tc_util.c index a347a2d5..a2d1d1df 100644 --- a/tc/tc_util.c +++ b/tc/tc_util.c @@ -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(); diff --git a/tc/tc_util.h b/tc/tc_util.h index 250cf33a..43032e78 100644 --- a/tc/tc_util.h +++ b/tc/tc_util.h @@ -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);