From ffc1fe64e7906bb32761603b386fbb7bd6249dc0 Mon Sep 17 00:00:00 2001 From: Steve Wise Date: Fri, 14 Oct 2016 12:02:44 -0700 Subject: [PATCH] rdma.m4: check if debugfs_create_bool() uses a bool or u32 pointer Signed-off-by: Steve Wise --- config/rdma.m4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/rdma.m4 b/config/rdma.m4 index f6f9a8d..4af4c59 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -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 + ],[ + (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 -- 2.41.0