]> git.openfabrics.org - ~aditr/compat.git/commitdiff
rdma.m4: check if debugfs_create_bool() uses a bool or u32 pointer
authorSteve Wise <swise@opengridcomputing.com>
Fri, 14 Oct 2016 19:02:44 +0000 (12:02 -0700)
committerSteve Wise <swise@opengridcomputing.com>
Fri, 14 Oct 2016 21:55:33 +0000 (14:55 -0700)
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
config/rdma.m4

index f6f9a8ddf3eb142785b30d7472bfb32d3971d05c..4af4c59a88d96bd76d55ea5db1ba4dfbab12b7de 100644 (file)
@@ -3180,6 +3180,21 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
                AC_MSG_RESULT(no)
        ])
 
+       AC_MSG_CHECKING([if debugfs.h debugfs_create_bool has bool pointer])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/debugfs.h>
+       ],[
+               (void)debugfs_create_bool(NULL, 0, NULL, (bool *)0);
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_DEBUGFS_CREATE_BOOL_USES_BOOL_PTR, 1,
+                         [debugfs_create_bool has bool pointer])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
 ])
 #
 # COMPAT_CONFIG_HEADERS