aboutsummaryrefslogtreecommitdiff
path: root/pfinet/linux-src/include/net/dst.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/dst.h
parent5714421bb1d066abebc7e993bdf06e655b879b3a (diff)
downloadhurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.tar.gz
hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.tar.bz2
hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.zip
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/dst.h')
-rw-r--r--pfinet/linux-src/include/net/dst.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/pfinet/linux-src/include/net/dst.h b/pfinet/linux-src/include/net/dst.h
index baf4f414..ceb4f400 100644
--- a/pfinet/linux-src/include/net/dst.h
+++ b/pfinet/linux-src/include/net/dst.h
@@ -80,7 +80,7 @@ struct dst_ops
extern struct dst_entry * dst_garbage_list;
extern atomic_t dst_total;
-extern __inline__
+static __inline__
struct dst_entry * dst_clone(struct dst_entry * dst)
{
if (dst)
@@ -88,7 +88,7 @@ struct dst_entry * dst_clone(struct dst_entry * dst)
return dst;
}
-extern __inline__
+static __inline__
void dst_release(struct dst_entry * dst)
{
if (dst)
@@ -99,7 +99,7 @@ void dst_release(struct dst_entry * dst)
destination entry has just been removed from a location
accessed directly by hard irq.
*/
-extern __inline__
+static __inline__
void dst_release_irqwait(struct dst_entry * dst)
{
if (dst) {
@@ -108,7 +108,7 @@ void dst_release_irqwait(struct dst_entry * dst)
}
}
-extern __inline__
+static __inline__
struct dst_entry * dst_check(struct dst_entry ** dst_p, u32 cookie)
{
struct dst_entry * dst = *dst_p;
@@ -117,7 +117,7 @@ struct dst_entry * dst_check(struct dst_entry ** dst_p, u32 cookie)
return (*dst_p = dst);
}
-extern __inline__
+static __inline__
struct dst_entry * dst_reroute(struct dst_entry ** dst_p, struct sk_buff *skb)
{
struct dst_entry * dst = *dst_p;
@@ -127,11 +127,11 @@ struct dst_entry * dst_reroute(struct dst_entry ** dst_p, struct sk_buff *skb)
}
-extern void * dst_alloc(int size, struct dst_ops * ops);
extern void __dst_free(struct dst_entry * dst);
+extern void * dst_alloc(int size, struct dst_ops * ops);
extern void dst_destroy(struct dst_entry * dst);
-extern __inline__
+static __inline__
void dst_free(struct dst_entry * dst)
{
if (dst->obsolete > 1)
@@ -143,27 +143,27 @@ void dst_free(struct dst_entry * dst)
__dst_free(dst);
}
-extern __inline__ void dst_confirm(struct dst_entry *dst)
+static __inline__ void dst_confirm(struct dst_entry *dst)
{
if (dst)
neigh_confirm(dst->neighbour);
}
-extern __inline__ void dst_negative_advice(struct dst_entry **dst_p)
+static __inline__ void dst_negative_advice(struct dst_entry **dst_p)
{
struct dst_entry * dst = *dst_p;
if (dst && dst->ops->negative_advice)
*dst_p = dst->ops->negative_advice(dst);
}
-extern __inline__ void dst_link_failure(struct sk_buff *skb)
+static __inline__ void dst_link_failure(struct sk_buff *skb)
{
struct dst_entry * dst = skb->dst;
if (dst && dst->ops && dst->ops->link_failure)
dst->ops->link_failure(skb);
}
-extern __inline__ void dst_set_expires(struct dst_entry *dst, int timeout)
+static __inline__ void dst_set_expires(struct dst_entry *dst, int timeout)
{
unsigned long expires = jiffies + timeout;