From: Steve Wise Date: Fri, 14 Oct 2016 19:02:44 +0000 (-0700) Subject: rdma.m4: check if debugfs_create_bool() uses a bool or u32 pointer X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=ffc1fe64e7906bb32761603b386fbb7bd6249dc0;p=~aditr%2Fcompat.git rdma.m4: check if debugfs_create_bool() uses a bool or u32 pointer Signed-off-by: Steve Wise --- 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