diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-12-31 14:54:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-02 03:30:36 -0500 |
commit | 9c75f4029cf494ae810a54e34ede9803cff60c7c (patch) | |
tree | e2e6c4ead9ba8b736a9c78f2c918850f76e6befc | |
parent | 2156d9a8ac0202f0158d407063cb850afffd3f56 (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.h | 3 | ||||
-rw-r--r-- | net/sched/act_api.c | 8 |
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); | |||
105 | void tcf_hash_destroy(struct tcf_common *p, struct tcf_hashinfo *hinfo); | 105 | void tcf_hash_destroy(struct tcf_common *p, struct tcf_hashinfo *hinfo); |
106 | int tcf_hash_release(struct tcf_common *p, int bind, | 106 | int tcf_hash_release(struct tcf_common *p, int bind, |
107 | struct tcf_hashinfo *hinfo); | 107 | struct tcf_hashinfo *hinfo); |
108 | int tcf_generic_walker(struct sk_buff *skb, struct netlink_callback *cb, | ||
109 | int type, struct tc_action *a); | ||
110 | u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo); | 108 | u32 tcf_hash_new_index(u32 *idx_gen, struct tcf_hashinfo *hinfo); |
111 | int tcf_hash_search(struct tc_action *a, u32 index); | ||
112 | struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a, | 109 | struct 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); |
114 | struct tcf_common *tcf_hash_create(u32 index, struct nlattr *est, | 111 | struct 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 | ||
144 | int tcf_generic_walker(struct sk_buff *skb, struct netlink_callback *cb, | 144 | static 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 | } |
158 | EXPORT_SYMBOL(tcf_generic_walker); | ||
159 | 158 | ||
160 | struct tcf_common *tcf_hash_lookup(u32 index, struct tcf_hashinfo *hinfo) | 159 | struct 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 | } |
188 | EXPORT_SYMBOL(tcf_hash_new_index); | 187 | EXPORT_SYMBOL(tcf_hash_new_index); |
189 | 188 | ||
190 | int tcf_hash_search(struct tc_action *a, u32 index) | 189 | static 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 | } |
201 | EXPORT_SYMBOL(tcf_hash_search); | ||
202 | 200 | ||
203 | struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a, int bind, | 201 | struct tcf_common *tcf_hash_check(u32 index, struct tc_action *a, int bind, |
204 | struct tcf_hashinfo *hinfo) | 202 | struct tcf_hashinfo *hinfo) |