ChangeSet 1.2217.1.16, 2005/03/16 20:44:03-08:00, [EMAIL PROTECTED]
[IPV4]: Mark a struct static in inetpeer.c
Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
include/net/inetpeer.h | 1 -
net/ipv4/inetpeer.c | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff -Nru a/include/net/inetpeer.h b/include/net/inetpeer.h
--- a/include/net/inetpeer.h 2005-03-18 14:06:33 -08:00
+++ b/include/net/inetpeer.h 2005-03-18 14:06:33 -08:00
@@ -35,7 +35,6 @@
struct inet_peer *inet_getpeer(__u32 daddr, int create);
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 */
static inline void inet_putpeer(struct inet_peer *p)
diff -Nru a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c
--- a/net/ipv4/inetpeer.c 2005-03-18 14:06:33 -08:00
+++ b/net/ipv4/inetpeer.c 2005-03-18 14:06:33 -08:00
@@ -92,9 +92,9 @@
int inet_peer_minttl = 120 * HZ; /* TTL under high load: 120 sec */
int inet_peer_maxttl = 10 * 60 * HZ; /* usual time to live: 10 min */
+static struct inet_peer *inet_peer_unused_head;
/* Exported for inet_putpeer inline function. */
-struct inet_peer *inet_peer_unused_head,
- **inet_peer_unused_tailp = &inet_peer_unused_head;
+struct inet_peer **inet_peer_unused_tailp = &inet_peer_unused_head;
DEFINE_SPINLOCK(inet_peer_unused_lock);
#define PEER_MAX_CLEANUP_WORK 30
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html