Skip to content

Commit

Permalink
compat: Remove HAVE_BOOL_TYPE
Browse files Browse the repository at this point in the history
OVS only supports Linux kernels since 3.10 and all kernels since
then have the bool type.  This check is unnecessary so remove it.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
  • Loading branch information
gvrose8192 committed Jan 30, 2020
1 parent f59b22a commit 1045010
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions acinclude.m4
Expand Up @@ -830,8 +830,6 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_nfct])
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_put_zero])
OVS_GREP_IFELSE([$KSRC/include/linux/types.h], [bool],
[OVS_DEFINE([HAVE_BOOL_TYPE])])
OVS_GREP_IFELSE([$KSRC/include/linux/types.h], [__wsum],
[OVS_DEFINE([HAVE_CSUM_TYPES])])
OVS_GREP_IFELSE([$KSRC/include/uapi/linux/types.h], [__wsum],
Expand Down
7 changes: 0 additions & 7 deletions datapath/linux/compat/include/linux/stddef.h
Expand Up @@ -5,13 +5,6 @@

#ifdef __KERNEL__

#ifndef HAVE_BOOL_TYPE
enum {
false = 0,
true = 1
};
#endif /* !HAVE_BOOL_TYPE */

#ifndef offsetofend
#define offsetofend(TYPE, MEMBER) \
(offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER))
Expand Down

0 comments on commit 1045010

Please sign in to comment.