Subject: Re: [RFC v2] net: Introduce recvmmsg socket syscall

From: David Miller <[email-masked]>
Date: Thu, 11 Jun 2009 02:41:00 -0700 (PDT)

From: Arnaldo Carvalho de Melo <[email-masked]>
Date: Thu, 11 Jun 2009 00:40:22 -0300

> +	struct compat_timespec *timeout_compat =
> +		(struct compat_timespec *)timeout;

In order for this to build on non-compat platforms, or when
CONFIG_COMPAT is disabled, you'll need to avoid trying to
reference compat_timespec.

We get away with compat_msghdr because we define it as a NOP
in net/compat.h when necessary.

Doing the same, and cleanly, with this non-networking compat knob is
unlikely to be straightforward.