tc/util: remove unused argument from print_tm

File argument no longer used.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
This commit is contained in:
Stephen Hemminger
2024-04-13 15:04:03 -07:00
committed by David Ahern
parent 98b7262c12
commit bf4022ebe6
21 changed files with 21 additions and 21 deletions

View 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);
}
}

View 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();

View 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();

View File

@@ -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();

View 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])

View 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();

View 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);
}
}

View 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);
}
}

View 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();

View 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);
}
}

View 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);
}
}

View 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");

View 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();

View 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();

View 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();

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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);
}
}

View 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();

View 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);