forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
d19742fb1c
commit
748879776e
@ -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 *);
|
extern int compat_sock_get_timestampns(struct sock *, struct timespec __user *);
|
||||||
|
|
||||||
#else /* defined(CONFIG_COMPAT) */
|
#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) */
|
#endif /* defined(CONFIG_COMPAT) */
|
||||||
|
|
||||||
extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *);
|
extern int get_compat_msghdr(struct msghdr *, struct compat_msghdr __user *);
|
||||||
|
Loading…
Reference in New Issue
Block a user