aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-12-31 14:54:00 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-02 03:30:36 -0500
commit9c75f4029cf494ae810a54e34ede9803cff60c7c (patch)
treee2e6c4ead9ba8b736a9c78f2c918850f76e6befc
parent2156d9a8ac0202f0158d407063cb850afffd3f56 (diff)
sched action: make local function static
No need to export functions only used in one file. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/act_api.h3
-rw-r--r--net/sched/act_api.c8
2 files changed, 3 insertions, 8 deletions
diff --git a/include/net/act_api.h b/include/net/act_api.h
index 77d5d8156efc..d34e1f4d897b 100644
--- a/include/net/act_api.h
+++ b/include/net/act_api.h
@@ -105,10 +105,7 @@ struct tcf_common *tcf_hash_lookup(u32 index, struct tcf_hashinfo *hinfo);
105void tcf_hash_destroy(struct tcf_common *p, struct tcf_hashinfo *hinfo); 105void tcf_hash_destroy(struct tcf_common *p, struct tcf_hashinfo *hinfo);
106int tcf_hash_release(struct tcf_common *p, int bind, 106int tcf_hash_release(struct tcf_common *p, int bind,
107 struct tcf_hashinfo *hinfo); 107 struct tcf_hashinfo *hinfo);
108int tcf_generic_walker(struct sk_buff *skb, struct netlink_callback *cb,
109 int type, struct tc_action *a);
110u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo); 108u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo);
111int tcf_hash_search(struct tc_action *a, u32 index);
112struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a, 109struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a,
113 int bind, struct tcf_hashinfo *hinfo); 110 int bind, struct tcf_hashinfo *hinfo);
114struct tcf_common *tcf_hash_create(u32 index, struct nlattr *est, 111struct tcf_common *tcf_hash_create(u32 index, struct nlattr *est,
diff --git a/net/sched/act_api.c b/net/sched/act_api.c
index dce2b6ecdbd8..6f103fd76c17 100644
--- a/net/sched/act_api.c
+++ b/net/sched/act_api.c
@@ -141,8 +141,8 @@ nla_put_failure:
141 return -EINVAL; 141 return -EINVAL;
142} 142}
143 143
144int tcf_generic_walker(struct sk_buff *skb, struct netlink_callback *cb, 144static int tcf_generic_walker(struct sk_buff *skb, struct netlink_callback *cb,
145 int type, struct tc_action *a) 145 int type, struct tc_action *a)
146{ 146{
147 struct tcf_hashinfo *hinfo = a->ops->hinfo; 147 struct tcf_hashinfo *hinfo = a->ops->hinfo;
148 148
@@ -155,7 +155,6 @@ int tcf_generic_walker(struct sk_buff *skb, struct netlink_callback *cb,
155 return -EINVAL; 155 return -EINVAL;
156 } 156 }
157} 157}
158EXPORT_SYMBOL(tcf_generic_walker);
159 158
160struct tcf_common *tcf_hash_lookup(u32 index, struct tcf_hashinfo *hinfo) 159struct tcf_common *tcf_hash_lookup(u32 index, struct tcf_hashinfo *hinfo)
161{ 160{
@@ -187,7 +186,7 @@ u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo)
187} 186}
188EXPORT_SYMBOL(tcf_hash_new_index); 187EXPORT_SYMBOL(tcf_hash_new_index);
189 188
190int tcf_hash_search(struct tc_action *a, u32 index) 189static int tcf_hash_search(struct tc_action *a, u32 index)
191{ 190{
192 struct tcf_hashinfo *hinfo = a->ops->hinfo; 191 struct tcf_hashinfo *hinfo = a->ops->hinfo;
193 struct tcf_common *p = tcf_hash_lookup(index, hinfo); 192 struct tcf_common *p = tcf_hash_lookup(index, hinfo);
@@ -198,7 +197,6 @@ int tcf_hash_search(struct tc_action *a, u32 index)
198 } 197 }
199 return 0; 198 return 0;
200} 199}
201EXPORT_SYMBOL(tcf_hash_search);
202 200
203struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a, int bind, 201struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a, int bind,
204 struct tcf_hashinfo *hinfo) 202 struct tcf_hashinfo *hinfo)