Skip to contentSkip to conversation

net/ipv6/: make two functions static

PATCH In review Adrian Bunk 2 participants 2 messages Nov 23, 2005 – Nov 30, 2005

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

PATCH 1/1 net/ipv6/: make two functions static

This patch makes two needlessly global functions static.

---

 net/ipv6/ip6_output.c    |    3 ++-
 net/ipv6/ipv6_sockglue.c |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
net/ipv6/ip6_output.c renamed from net/ipv6/ip6_output.c.old +2 -1
@@ -774,7 +774,8 @@
 	*dst = NULL;
 	return err;
 }
-inline int ip6_ufo_append_data(struct sock *sk,
+
+static inline int ip6_ufo_append_data(struct sock *sk,
 			int getfrag(void *from, char *to, int offset, int len,
 			int odd, struct sk_buff *skb),
 			void *from, int length, int hh_len, int fragheaderlen,
net/ipv6/ipv6_sockglue.c renamed from net/ipv6/ipv6_sockglue.c.old +2 -2
@@ -628,8 +628,8 @@
 	return -EINVAL;
 }
 
-int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_opt_hdr *hdr,
-			   char __user *optval, int len)
+static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_opt_hdr *hdr,
+				  char __user *optval, int len)
 {
 	if (!hdr)
 		return 0;