[ovs-git] [openvswitch/ovs] b4409e: test-netlink-conntrack: Fix sparse warning.

GitHub noreply at github.com
Wed Aug 3 17:58:58 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: b4409ed6d3aeedfff7476c57fd90ef552d499a9e
      https://github.com/openvswitch/ovs/commit/b4409ed6d3aeedfff7476c57fd90ef552d499a9e
  Author: Daniele Di Proietto <diproiettod at vmware.com>
  Date:   2016-08-03 (Wed, 03 Aug 2016)

  Changed paths:
    M tests/test-netlink-conntrack.c

  Log Message:
  -----------
  test-netlink-conntrack: Fix sparse warning.

On some systems I get a sparse warning when compiling
tests/test-netlink-conntrack.c

/usr/include/x86_64-linux-gnu/sys/cdefs.h:307:10: warning: preprocessor
token __always_inline redefined
/usr/include/linux/stddef.h:4:9: this was the original definition

The problem seems to be that Linux upstream commit
283d75737837("uapi/linux/stddef.h: Provide __always_inline to userspace
headers") introduced __always_inline in stddef.h, but glibc headers
didn't like that until e0835a5354ab("Bug 20215: Always undefine
__always_inline before defining it.").

This commit works around the issue by including a glibc header before a
kernel header.

Fixes: 2c06d9a927c5("ovstest: Add test-netlink-conntrack command.")
Reported-by: Joe Stringer <joe at ovn.org>
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>
Acked-by: Joe Stringer <joe at ovn.org>




More information about the git mailing list