No longer need this compat file, we can use the upstream version
of the function.

Signed-off-by: Alex Wang <al...@nicira.com>
---
 datapath/linux/Modules.mk                  |    1 -
 datapath/linux/compat/include/linux/log2.h |   17 -----------------
 2 files changed, 18 deletions(-)
 delete mode 100644 datapath/linux/compat/include/linux/log2.h

diff --git a/datapath/linux/Modules.mk b/datapath/linux/Modules.mk
index 7d9710d..875ac03 100644
--- a/datapath/linux/Modules.mk
+++ b/datapath/linux/Modules.mk
@@ -39,7 +39,6 @@ openvswitch_headers += \
        linux/compat/include/linux/kconfig.h \
        linux/compat/include/linux/kernel.h \
        linux/compat/include/linux/list.h \
-       linux/compat/include/linux/log2.h \
        linux/compat/include/linux/mpls.h \
        linux/compat/include/linux/net.h \
        linux/compat/include/linux/random.h \
diff --git a/datapath/linux/compat/include/linux/log2.h 
b/datapath/linux/compat/include/linux/log2.h
deleted file mode 100644
index 69abae5..0000000
--- a/datapath/linux/compat/include/linux/log2.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#ifndef __LINUX_LOG2_WRAPPER
-#define __LINUX_LOG2_WRAPPER
-
-#ifdef HAVE_LOG2_H
-#include_next <linux/log2.h>
-#else
-/* This is very stripped down because log2.h has far too many dependencies. */
-
-extern __attribute__((const, noreturn))
-int ____ilog2_NaN(void);
-
-#define ilog2(n) ((n) == 4 ? 2 : \
-                 (n) == 8 ? 3 : \
-                 ____ilog2_NaN())
-#endif
-
-#endif
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to