[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240413220516.7235-3-stephen@networkplumber.org>
Date: Sat, 13 Apr 2024 15:04:03 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>
Subject: [PATCH iproute2-next 2/7] tc/util: remove unused argument from print_tm
File argument no longer used.
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
---
tc/m_bpf.c | 2 +-
tc/m_connmark.c | 2 +-
tc/m_csum.c | 2 +-
tc/m_ct.c | 2 +-
tc/m_ctinfo.c | 2 +-
tc/m_gact.c | 2 +-
tc/m_gate.c | 2 +-
tc/m_ife.c | 2 +-
tc/m_mirred.c | 2 +-
tc/m_mpls.c | 2 +-
tc/m_nat.c | 2 +-
tc/m_pedit.c | 2 +-
tc/m_police.c | 2 +-
tc/m_sample.c | 2 +-
tc/m_simple.c | 2 +-
tc/m_skbedit.c | 2 +-
tc/m_skbmod.c | 2 +-
tc/m_tunnel_key.c | 2 +-
tc/m_vlan.c | 2 +-
tc/tc_util.c | 2 +-
tc/tc_util.h | 2 +-
21 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/tc/m_bpf.c b/tc/m_bpf.c
index da50c05e..5cae51ba 100644
--- a/tc/m_bpf.c
+++ b/tc/m_bpf.c
@@ -200,7 +200,7 @@ static int bpf_print_opt(struct action_util *au, FILE *f, struct rtattr *arg)
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 8506d95a..bd388665 100644
--- a/tc/m_connmark.c
+++ b/tc/m_connmark.c
@@ -123,7 +123,7 @@ static int print_connmark(struct action_util *au, FILE *f, struct rtattr *arg)
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 f5fe8f55..966ae18e 100644
--- a/tc/m_csum.c
+++ b/tc/m_csum.c
@@ -213,7 +213,7 @@ print_csum(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 8c471489..95098c88 100644
--- a/tc/m_ct.c
+++ b/tc/m_ct.c
@@ -534,7 +534,7 @@ static int print_ct(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 996a3621..606ab280 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 225ffce4..0d90963c 100644
--- a/tc/m_gact.c
+++ b/tc/m_gact.c
@@ -203,7 +203,7 @@ print_gact(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 37afa426..b2643ad8 100644
--- a/tc/m_gate.c
+++ b/tc/m_gate.c
@@ -527,7 +527,7 @@ static int print_gate(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 162607ce..f5b2d52d 100644
--- a/tc/m_ife.c
+++ b/tc/m_ife.c
@@ -315,7 +315,7 @@ static int print_ife(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 60bd9045..5e9856e0 100644
--- a/tc/m_mirred.c
+++ b/tc/m_mirred.c
@@ -348,7 +348,7 @@ print_mirred(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 dda46805..a378e35e 100644
--- a/tc/m_mpls.c
+++ b/tc/m_mpls.c
@@ -283,7 +283,7 @@ static int print_mpls(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 95b35584..e4c74b08 100644
--- a/tc/m_nat.c
+++ b/tc/m_nat.c
@@ -179,7 +179,7 @@ print_nat(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 32f03415..fc06d04b 100644
--- a/tc/m_pedit.c
+++ b/tc/m_pedit.c
@@ -801,7 +801,7 @@ static int print_pedit(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 46c39a81..d140c1eb 100644
--- a/tc/m_police.c
+++ b/tc/m_police.c
@@ -347,7 +347,7 @@ static int print_police(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 769de144..36e4c1db 100644
--- a/tc/m_sample.c
+++ b/tc/m_sample.c
@@ -171,7 +171,7 @@ static int print_sample(struct action_util *au, FILE *f, struct rtattr *arg)
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 fe2bca21..a2366187 100644
--- a/tc/m_simple.c
+++ b/tc/m_simple.c
@@ -187,7 +187,7 @@ static int print_simple(struct action_util *au, FILE *f, struct rtattr *arg)
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 d55a6128..00b245ee 100644
--- a/tc/m_skbedit.c
+++ b/tc/m_skbedit.c
@@ -250,7 +250,7 @@ static int print_skbedit(struct action_util *au, FILE *f, struct rtattr *arg)
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 b1c8d00d..c7a2ccd5 100644
--- a/tc/m_skbmod.c
+++ b/tc/m_skbmod.c
@@ -218,7 +218,7 @@ static int print_skbmod(struct action_util *au, FILE *f, struct rtattr *arg)
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 ff699cc8..e62f9118 100644
--- a/tc/m_tunnel_key.c
+++ b/tc/m_tunnel_key.c
@@ -742,7 +742,7 @@ static int print_tunnel_key(struct action_util *au, FILE *f, struct rtattr *arg)
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 c1dc8b42..31d3b06f 100644
--- a/tc/m_vlan.c
+++ b/tc/m_vlan.c
@@ -293,7 +293,7 @@ static int print_vlan(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 aa7cf60f..25c8d6b6 100644
--- a/tc/tc_util.c
+++ b/tc/tc_util.c
@@ -650,7 +650,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 623d9888..152ef3e6 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(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(struct qdisc_util *qu, FILE *f, struct rtattr *opt);
int cls_names_init(char *path);
--
2.43.0
Powered by blists - more mailing lists