Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1481934

Re: [PATCH net-next 2/2] errqueue: include linux/time.h

From Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next 2/2] errqueue: include linux/time.h
Date 2016-09-12 22:20 +0200
Message-ID <sgFRT-8ja-9@gated-at.bofh.it> (permalink)
References <sgDGp-6uu-7@gated-at.bofh.it> <sgF5v-7Bx-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Sep 12, 2016 at 3:26 PM, kbuild test robot <lkp@intel.com> wrote:
> Hi Willem,
>
> [auto build test ERROR on net-next/master]
>
> url:    https://github.com/0day-ci/linux/commits/Willem-de-Bruijn/uapi-include-time-h-from-errqueue-h/20160913-020431
> config: i386-defconfig (attached as .config)
> compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
>         # save the attached .config to linux build tree
>         make ARCH=i386
>
> All errors (new ones prefixed by >>):

This error report shows that breakage can occur with applications that
include linux/errqueue.h before the libc time headers.

The libc-compat definitions in this patch set only fix compilation
when uapi headers are included after the userspace headers.

These errors indeed go away when errqueue.h is included after the
userspace time includes, as in the diff below.

For the inverse, the libc headers need additional #if __UAPI_DEF_FOO
changes, as described in include/uapli/linux/libc-compat.h. Those
changes are a noop without kernel definitions, so arguably that libc
patch should be merged before this kernel patch.

I will remove this patch set from the patchwork queue for now.

diff --git a/Documentation/networking/timestamping/txtimestamp.c
b/Documentation/networking/timestamping/txtimestamp.c
index 5df0704..f073801 100644
--- a/Documentation/networking/timestamping/txtimestamp.c
+++ b/Documentation/networking/timestamping/txtimestamp.c
@@ -37,7 +37,6 @@
 #include <error.h>
 #include <errno.h>
 #include <inttypes.h>
-#include <linux/errqueue.h>
 #include <linux/if_ether.h>
 #include <linux/net_tstamp.h>
 #include <netdb.h>
@@ -59,6 +58,7 @@
 #include <sys/time.h>
 #include <sys/types.h>
 #include <time.h>
+#include <linux/errqueue.h>
 #include <unistd.h>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next 0/2] uapi: include time.h from errqueue.h Willem de Bruijn <willemdebruijn.kernel@gmail.com> - 2016-09-12 19:10 +0200
  [PATCH net-next 2/2] errqueue: include linux/time.h Willem de Bruijn <willemdebruijn.kernel@gmail.com> - 2016-09-12 20:00 +0200
    Re: [PATCH net-next 2/2] errqueue: include linux/time.h kbuild test robot <lkp@intel.com> - 2016-09-12 21:30 +0200
      Re: [PATCH net-next 2/2] errqueue: include linux/time.h Willem de Bruijn <willemdebruijn.kernel@gmail.com> - 2016-09-12 22:20 +0200
  [PATCH net-next 1/2] uapi glibc compat: make linux/time.h compile with user time.h files Willem de Bruijn <willemdebruijn.kernel@gmail.com> - 2016-09-12 20:00 +0200

csiph-web