summaryrefslogtreecommitdiff
path: root/pfinet/linux-src/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2016-01-02 18:38:31 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-01-02 18:48:57 +0100
commit05e6878c8767cf7006675d5e5a646b2f74aa88c7 (patch)
tree3cba4a57d98573761d4538f6a24f1be1c2b2c197 /pfinet/linux-src/include/net/pkt_cls.h
parent5714421bb1d066abebc7e993bdf06e655b879b3a (diff)
allow pfinet to link using -O0
This fixes a long list of undefined references when compiling with -O0 by using static instead of extern in header files.
Diffstat (limited to 'pfinet/linux-src/include/net/pkt_cls.h')
-rw-r--r--pfinet/linux-src/include/net/pkt_cls.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pfinet/linux-src/include/net/pkt_cls.h b/pfinet/linux-src/include/net/pkt_cls.h
index b8547e60..13e24a9b 100644
--- a/pfinet/linux-src/include/net/pkt_cls.h
+++ b/pfinet/linux-src/include/net/pkt_cls.h
@@ -63,7 +63,7 @@ struct tcf_proto_ops
specific classifiers.
*/
-extern __inline__ int tc_classify(struct sk_buff *skb, struct tcf_proto *tp, struct tcf_result *res)
+static __inline__ int tc_classify(struct sk_buff *skb, struct tcf_proto *tp, struct tcf_result *res)
{
int err = 0;
u32 protocol = skb->protocol;
@@ -77,7 +77,7 @@ extern __inline__ int tc_classify(struct sk_buff *skb, struct tcf_proto *tp, str
return -1;
}
-extern __inline__ unsigned long cls_set_class(unsigned long *clp, unsigned long cl)
+static __inline__ unsigned long cls_set_class(unsigned long *clp, unsigned long cl)
{
unsigned long old_cl;