From: Arnaldo Carvalho de Melo Date: Tue, 20 Oct 2009 08:09:17 +0000 (-0700) Subject: net: Avoid compiler warning for mmsghdr when CONFIG_COMPAT is not selected X-Git-Tag: v2.6.33-rc1~388^2~750 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=748879776e3b738d53e64df6dbec7394b829462a;p=platform%2Fkernel%2Flinux-3.10.git net: Avoid compiler warning for mmsghdr when CONFIG_COMPAT is not selected Reported-by: Stephen Rothwell Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- diff --git a/include/net/compat.h b/include/net/compat.h index 9679f05..3c7d4e3 100644 --- a/include/net/compat.h +++ b/include/net/compat.h @@ -33,7 +33,11 @@ extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *); extern int compat_sock_get_timestampns(struct sock *, struct timespec __user *); #else /* defined(CONFIG_COMPAT) */ -#define compat_msghdr msghdr /* to avoid compiler warnings */ +/* + * To avoid compiler warnings: + */ +#define compat_msghdr msghdr +#define compat_mmsghdr mmsghdr #endif /* defined(CONFIG_COMPAT) */ extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *);