summaryrefslogtreecommitdiffstats
path: root/include/net/compat.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@ghostprotocols.net>2009-10-20 01:09:17 -0700
committerDavid S. Miller <davem@davemloft.net>2009-10-20 01:09:17 -0700
commit748879776e3b738d53e64df6dbec7394b829462a (patch)
tree421cb23434aec4ad99e8223e984423697a029847 /include/net/compat.h
parentd19742fb1c68e6db83b76e06dea5a374c99e104f (diff)
downloadop-kernel-dev-748879776e3b738d53e64df6dbec7394b829462a.zip
op-kernel-dev-748879776e3b738d53e64df6dbec7394b829462a.tar.gz
net: Avoid compiler warning for mmsghdr when CONFIG_COMPAT is not selected
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/compat.h')
-rw-r--r--include/net/compat.h6
1 files changed, 5 insertions, 1 deletions
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 *);
OpenPOWER on IntegriCloud