From: Vladimir Sokolovsky Date: Mon, 3 Dec 2018 19:19:23 +0000 (-0600) Subject: rdma.m4: Added macro to check kernel_param_ops existence X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=484877292968079c4e0af205a74232e3e7cac36b;p=~aditr%2Fcompat.git rdma.m4: Added macro to check kernel_param_ops existence Signed-off-by: Vladimir Sokolovsky --- diff --git a/config/rdma.m4 b/config/rdma.m4 index 24d1ee5..43581da 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -8732,6 +8732,21 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + + AC_MSG_CHECKING([if moduleparam.h has kernel_param_ops]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + static struct kernel_param_ops ops = {0}; + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_MODULEPARAM_KERNEL_PARAM_OPS, 1, + [moduleparam.h has kernel_param_ops]) + ],[ + AC_MSG_RESULT(no) + ]) ]) # # COMPAT_CONFIG_HEADERS