From: Andrew Morton Date: Wed, 31 May 2006 04:27:18 +0000 (-0700) Subject: [PATCH] net/compat.h build fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29f767a254be8fd44fb5d2b5a48e9cda8399c4ea;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] net/compat.h build fix From: Andrew Morton 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" Cc: Cedric Pellerin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/net/compat.h b/include/net/compat.h index 8662b8f43df5..e65cbedb6abc 100644 --- a/include/net/compat.h +++ b/include/net/compat.h @@ -3,6 +3,8 @@ #include +struct sock; + #if defined(CONFIG_COMPAT) #include @@ -23,7 +25,6 @@ struct compat_cmsghdr { compat_int_t cmsg_type; }; -struct sock; extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *); #else /* defined(CONFIG_COMPAT) */