net_sched: make tcf_hash_destroy() static
authorAlexei Starovoitov <ast@plumgrid.com>
Wed, 26 Aug 2015 03:06:31 +0000 (20:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2015 18:01:44 +0000 (11:01 -0700)
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>
include/net/act_api.h
net/sched/act_api.c

index 4519c81304bd26ec6a6fe6520ecd8a1caeaba4dd..9d446f136607e54cd041e57474e608f09d4278ef 100644 (file)
@@ -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,
index b087087ccfa94a47b96f9778342d4d021cf4ed1a..06e7c4a372451916b77d81d32d94e2a20d96a527 100644 (file)
@@ -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;
@@ -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)
 {