aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavem <davem>2002-01-12 07:54:56 +0000
committerdavem <davem>2002-01-12 07:54:56 +0000
commite2b1715c54c5f195f1d8c35a523becb71a7762c8 (patch)
tree0bf6e2a410b3addf3322c408c68f015793c62a8f
parente4e73f06b4e9a3611d646df56a11c0d5f1f6fa18 (diff)
downloadnetdev-vger-cvs-e2b1715c54c5f195f1d8c35a523becb71a7762c8.tar.gz
extern+inline --> static+inline
From Keith Owens.
-rw-r--r--include/net/inetpeer.h6
-rw-r--r--net/ipv4/fib_semantics.c6
-rw-r--r--net/ipv4/ip_fragment.c8
3 files changed, 10 insertions, 10 deletions
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h
index e6fa794ed..628b22135 100644
--- a/include/net/inetpeer.h
+++ b/include/net/inetpeer.h
@@ -1,7 +1,7 @@
/*
* INETPEER - A storage for permanent information about peers
*
- * Version: $Id: inetpeer.h,v 1.1 2000-01-06 00:41:51 davem Exp $
+ * Version: $Id: inetpeer.h,v 1.2 2002-01-12 07:54:56 davem Exp $
*
* Authors: Andrey V. Savochkin <saw@msu.ru>
*/
@@ -38,7 +38,7 @@ extern spinlock_t inet_peer_unused_lock;
extern struct inet_peer *inet_peer_unused_head;
extern struct inet_peer **inet_peer_unused_tailp;
/* can be called from BH context or outside */
-extern inline void inet_putpeer(struct inet_peer *p)
+static inline void inet_putpeer(struct inet_peer *p)
{
spin_lock_bh(&inet_peer_unused_lock);
if (atomic_dec_and_test(&p->refcnt)) {
@@ -53,7 +53,7 @@ extern inline void inet_putpeer(struct inet_peer *p)
extern spinlock_t inet_peer_idlock;
/* can be called with or without local BH being disabled */
-extern inline __u16 inet_getid(struct inet_peer *p)
+static inline __u16 inet_getid(struct inet_peer *p)
{
__u16 id;
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index b5c41c1f0..ac5aa82b9 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -5,7 +5,7 @@
*
* IPv4 Forwarding Information Base: semantics.
*
- * Version: $Id: fib_semantics.c,v 1.18 2001-10-31 21:55:54 davem Exp $
+ * Version: $Id: fib_semantics.c,v 1.19 2002-01-12 07:54:56 davem Exp $
*
* Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
*
@@ -134,7 +134,7 @@ void fib_release_info(struct fib_info *fi)
write_unlock(&fib_info_lock);
}
-extern __inline__ int nh_comp(const struct fib_info *fi, const struct fib_info *ofi)
+static __inline__ int nh_comp(const struct fib_info *fi, const struct fib_info *ofi)
{
const struct fib_nh *onh = ofi->fib_nh;
@@ -155,7 +155,7 @@ extern __inline__ int nh_comp(const struct fib_info *fi, const struct fib_info *
return 0;
}
-extern __inline__ struct fib_info * fib_find_info(const struct fib_info *nfi)
+static __inline__ struct fib_info * fib_find_info(const struct fib_info *nfi)
{
for_fib_info() {
if (fi->fib_nhs != nfi->fib_nhs)
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c
index e5b9bbf34..795f6cf18 100644
--- a/net/ipv4/ip_fragment.c
+++ b/net/ipv4/ip_fragment.c
@@ -5,7 +5,7 @@
*
* The IP fragmentation functionality.
*
- * Version: $Id: ip_fragment.c,v 1.58 2001-09-01 00:31:50 davem Exp $
+ * Version: $Id: ip_fragment.c,v 1.59 2002-01-12 07:54:56 davem Exp $
*
* Authors: Fred N. van Kempen <waltje@uWalt.NL.Mugnet.ORG>
* Alan Cox <Alan.Cox@linux.org>
@@ -130,19 +130,19 @@ static __inline__ unsigned int ipqhashfn(u16 id, u32 saddr, u32 daddr, u8 prot)
atomic_t ip_frag_mem = ATOMIC_INIT(0); /* Memory used for fragments */
/* Memory Tracking Functions. */
-extern __inline__ void frag_kfree_skb(struct sk_buff *skb)
+static __inline__ void frag_kfree_skb(struct sk_buff *skb)
{
atomic_sub(skb->truesize, &ip_frag_mem);
kfree_skb(skb);
}
-extern __inline__ void frag_free_queue(struct ipq *qp)
+static __inline__ void frag_free_queue(struct ipq *qp)
{
atomic_sub(sizeof(struct ipq), &ip_frag_mem);
kfree(qp);
}
-extern __inline__ struct ipq *frag_alloc_queue(void)
+static __inline__ struct ipq *frag_alloc_queue(void)
{
struct ipq *qp = kmalloc(sizeof(struct ipq), GFP_ATOMIC);