Skip to content

Commit

Permalink
net_sched: make tcf_hash_destroy() static
Browse files Browse the repository at this point in the history
tcf_hash_destroy() used once. Make it static.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexei Starovoitov authored and David S. Miller committed Aug 26, 2015
1 parent dc8242f commit 3c64562
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion include/net/act_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ struct tc_action_ops {
};

int tcf_hash_search(struct tc_action *a, u32 index);
void tcf_hash_destroy(struct tc_action *a);
u32 tcf_hash_new_index(struct tcf_hashinfo *hinfo);
int tcf_hash_check(u32 index, struct tc_action *a, int bind);
int tcf_hash_create(u32 index, struct nlattr *est, struct tc_action *a,
Expand Down
3 changes: 1 addition & 2 deletions net/sched/act_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static void free_tcf(struct rcu_head *head)
kfree(p);
}

void tcf_hash_destroy(struct tc_action *a)
static void tcf_hash_destroy(struct tc_action *a)
{
struct tcf_common *p = a->priv;
struct tcf_hashinfo *hinfo = a->ops->hinfo;
Expand All @@ -52,7 +52,6 @@ void tcf_hash_destroy(struct tc_action *a)
*/
call_rcu(&p->tcfc_rcu, free_tcf);
}
EXPORT_SYMBOL(tcf_hash_destroy);

int __tcf_hash_release(struct tc_action *a, bool bind, bool strict)
{
Expand Down

0 comments on commit 3c64562

Please sign in to comment.