Skip to content

Commit 29f767a

Browse files
Andrew MortonLinus Torvalds
authored andcommitted
[PATCH] net/compat.h build fix
From: Andrew Morton <akpm@osdl.org> Move the forward decl outside the ifdef, since we use it in both legs. Should fix the spacr64 build error reported in http://bugzilla.kernel.org/show_bug.cgi?id=6625 Acked-by: "David S. Miller" <davem@davemloft.net> Cc: Cedric Pellerin <cedric@bidouillesoft.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent c331eb0 commit 29f767a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎include/net/compat.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include <linux/config.h>
55

6+
struct sock;
7+
68
#if defined(CONFIG_COMPAT)
79

810
#include <linux/compat.h>
@@ -23,7 +25,6 @@ struct compat_cmsghdr {
2325
compat_int_t cmsg_type;
2426
};
2527

26-
struct sock;
2728
extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *);
2829

2930
#else /* defined(CONFIG_COMPAT) */

0 commit comments

Comments
 (0)