Skip to contentSkip to conversation

net/ipv6/: small cleanups

PATCH In review Adrian Bunk 2 participants 2 messages Jan 7, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ipv6/: small cleanups

This patch contains the following cleanups:
- addrconf.c: make addrconf_dad_stop() static
- inet6_connection_sock.c should #include <net/inet6_connection_sock.h> for getting the prototypes of it's global functions

---

 net/ipv6/addrconf.c              |    2 +-
 net/ipv6/inet6_connection_sock.c |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
net/ipv6/addrconf.c renamed from net/ipv6/addrconf.c.old +1 -1
@@ -1228,7 +1228,7 @@
 
 /* Gets referenced address, destroys ifaddr */
 
-void addrconf_dad_stop(struct inet6_ifaddr *ifp)
+static void addrconf_dad_stop(struct inet6_ifaddr *ifp)
 {
 	if (ifp->flags&IFA_F_PERMANENT) {
 		spin_lock_bh(&ifp->lock);
net/ipv6/inet6_connection_sock.c renamed from net/ipv6/inet6_connection_sock.c.old +1 -0
@@ -25,6 +25,7 @@
 #include <net/inet_hashtables.h>
 #include <net/ip6_route.h>
 #include <net/sock.h>
+#include <net/inet6_connection_sock.h>
 
 int inet6_csk_bind_conflict(const struct sock *sk,
 			    const struct inet_bind_bucket *tb)
maintainer
#1 lore raw

From: Adrian Bunk <[email protected]>
Date: Sat, 7 Jan 2006 19:17:23 +0100

Quoted 6 lines

This patch contains the following cleanups:
- addrconf.c: make addrconf_dad_stop() static
- inet6_connection_sock.c should #include <net/inet6_connection_sock.h> for getting the prototypes of it's global functions

Also applied, thanks.