to free afterwards; less serious, but also needs fixing.
Patch by Al Viro, David Miller, David Woodhouse
+(sparc64 clean compile fix from David Miller)
+Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
+Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Chris Wright <chrisw@osdl.org>
---
- include/net/compat.h | 2 +-
+ include/net/compat.h | 5 +++--
net/compat.c | 44 ++++++++++++++++++++++++++------------------
net/socket.c | 3 ++-
- 3 files changed, 29 insertions(+), 20 deletions(-)
+ 3 files changed, 31 insertions(+), 21 deletions(-)
Index: linux-2.6.13.y/include/net/compat.h
===================================================================
--- linux-2.6.13.y.orig/include/net/compat.h
+++ linux-2.6.13.y/include/net/compat.h
-@@ -33,7 +33,7 @@ extern asmlinkage long compat_sys_sendms
+@@ -33,7 +33,8 @@ extern asmlinkage long compat_sys_sendms
extern asmlinkage long compat_sys_recvmsg(int,struct compat_msghdr __user *,unsigned);
extern asmlinkage long compat_sys_getsockopt(int, int, int, char __user *, int __user *);
extern int put_cmsg_compat(struct msghdr*, int, int, int, void *);
-extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, unsigned char *,
-+extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, unsigned char *,
- int);
+- int);
++
++struct sock;
++extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, unsigned char *, int);
#endif /* NET_COMPAT_H */
Index: linux-2.6.13.y/net/compat.c