]> git.proxmox.com Git - ovs.git/commitdiff
compat: Fix compiler headers
authorGreg Rose <gvrose8192@gmail.com>
Wed, 7 Feb 2018 15:30:06 +0000 (07:30 -0800)
committerPravin B Shelar <pshelar@ovn.org>
Mon, 12 Feb 2018 08:19:10 +0000 (00:19 -0800)
Since Linux kernel upstream commit d15155824c50
("linux/compiler.h: Split into compiler.h and compiler_types.h") this
error check for the gcc compiler header is no longer valid.  Remove
so that openvswitch builds for linux kernels 4.14.8 and since.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
acinclude.m4
datapath/linux/compat/include/linux/compiler-gcc.h

index 124ee1b53406265eed7ff2dfb1f6dd837696f1dd..b10a9e7be97a13f394216d1a65893309d90ce677 100644 (file)
@@ -799,6 +799,9 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
   OVS_FIND_PARAM_IFELSE([$KSRC/include/linux/netdevice.h],
                         [netdev_master_upper_dev_link], [extack],
                         [OVS_DEFINE([HAVE_UPPER_DEV_LINK_EXTACK])])
+  OVS_GREP_IFELSE([$KSRC/include/linux/compiler_types.h],
+                  [__LINUX_COMPILER_TYPES_H],
+                  [OVS_DEFINE([HAVE_LINUX_COMPILER_TYPES_H])])
 
   if cmp -s datapath/linux/kcompat.h.new \
             datapath/linux/kcompat.h >/dev/null 2>&1; then
index bf057f74575c928206e9ddeb1155ea397a1d8aa3..bfcd5312a2fa9383390fd5998976897e3446daa0 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_COMPILER_H
+#ifndef HAVE_LINUX_COMPILER_TYPES_H
 #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
 #endif
+#endif
 
 #include_next <linux/compiler-gcc.h>