Skip to content

Commit

Permalink
[PKT_SCHED]: Remove some obsolete policer exports
Browse files Browse the repository at this point in the history
Also make sure the legacy code is only built when CONFIG_NET_CLS_ACT
is not set.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 9, 2006
1 parent f43c5a0 commit 31bd06e
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions net/sched/police.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ police_cleanup_module(void)
module_init(police_init_module);
module_exit(police_cleanup_module);

#endif
#else /* CONFIG_NET_CLS_ACT */

struct tcf_police * tcf_police_locate(struct rtattr *rta, struct rtattr *est)
{
Expand Down Expand Up @@ -544,6 +544,7 @@ int tcf_police(struct sk_buff *skb, struct tcf_police *p)
spin_unlock(&p->lock);
return p->action;
}
EXPORT_SYMBOL(tcf_police);

int tcf_police_dump(struct sk_buff *skb, struct tcf_police *p)
{
Expand Down Expand Up @@ -600,13 +601,4 @@ int tcf_police_dump_stats(struct sk_buff *skb, struct tcf_police *p)
return -1;
}


EXPORT_SYMBOL(tcf_police);
EXPORT_SYMBOL(tcf_police_destroy);
EXPORT_SYMBOL(tcf_police_dump);
EXPORT_SYMBOL(tcf_police_dump_stats);
EXPORT_SYMBOL(tcf_police_hash);
EXPORT_SYMBOL(tcf_police_ht);
EXPORT_SYMBOL(tcf_police_locate);
EXPORT_SYMBOL(tcf_police_lookup);
EXPORT_SYMBOL(tcf_police_new_index);
#endif /* CONFIG_NET_CLS_ACT */

0 comments on commit 31bd06e

Please sign in to comment.