tree c10785ae043fe527cea839c4153e4bfede48cc20
parent e308e25c97f06cf704e65eeb773412f5460a3b93
author David S. Miller <[EMAIL PROTECTED]> Fri, 09 Sep 2005 02:32:46 -0700
committer David S. Miller <[EMAIL PROTECTED]> Fri, 09 Sep 2005 02:32:46 -0700

[NET]: Need struct sock forward decl in net/compat.h

Else we get build failures like:

  CC      arch/sparc64/kernel/sparc64_ksyms.o
In file included from arch/sparc64/kernel/sparc64_ksyms.c:28:
include/net/compat.h:37: warning: "struct sock" declared inside parameter list
include/net/compat.h:37: warning: its scope is only this definition or 
declaration, which is probably not what you want

Signed-off-by: David S. Miller <[EMAIL PROTECTED]>

 include/net/compat.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/net/compat.h b/include/net/compat.h
--- a/include/net/compat.h
+++ b/include/net/compat.h
@@ -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 *, struct sock *, 
unsigned char *,
-               int);
+
+struct sock;
+extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, 
unsigned char *, int);
 
 #endif /* NET_COMPAT_H */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to