projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d19742f
)
net: Avoid compiler warning for mmsghdr when CONFIG_COMPAT is not selected
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 20 Oct 2009 08:09:17 +0000
(
01:09
-0700)
committer
David S. Miller
<
[email protected]
>
Tue, 20 Oct 2009 08:09:17 +0000
(
01:09
-0700)
Reported-by: Stephen Rothwell <
[email protected]
>
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/net/compat.h
patch
|
blob
|
history
diff --git
a/include/net/compat.h
b/include/net/compat.h
index 9679f05e98967c56ae9b1c1f35cf00a891a99d44..3c7d4e38fa1d3011d620e6cc1528e8ff39562ac8 100644
(file)
--- 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 *);