rdma.m4: Added macro to check kernel_param_ops existence vofed-4.17 vofed-4.17-rc2
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 3 Dec 2018 19:19:23 +0000 (13:19 -0600)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 3 Dec 2018 19:19:23 +0000 (13:19 -0600)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
config/rdma.m4

index 24d1ee5..43581da 100644 (file)
@@ -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 <linux/moduleparam.h>
+       ],[
+               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