Whamcloud - gitweb
LU-10805 lnet: switch to module_param 88/31788/3
authorLi Dongyang <dongyangli@ddn.com>
Tue, 27 Mar 2018 05:55:51 +0000 (16:55 +1100)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 19 Apr 2018 04:38:40 +0000 (04:38 +0000)
commit71cd88f5bf4ec7187753dfaf0bb86be9362c5ad5
tree3f4c9a7d42332cda6347847c0d6d598c5fffb800
parentd6e9ece60a551df832881b77f04227d0f07d6ade
LU-10805 lnet: switch to module_param

From Linux 4.15 kernel the set/get function prototypes
for module_param_call has changed. This triggers compile
error:
  CC [M]  lustre-release/lnet/lnet/api-ni.o
In file included from lustre-release/lnet/lnet/api-ni.c:38:0:
include/linux/moduleparam.h:232:22: error:
initialization from incompatible pointer type [-Werror]
  static const struct kernel_param_ops __param_ops_##name =
We can switch to module_param and cfs_kernel_param_arg_t since
they are already available in libcfs.

Linux-commit: b2f270e8747387335d80428c576118e7d87f69cc

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: Ie6f0f3a31fd22904e03e8300f45f0a8684265abd
Reviewed-on: https://review.whamcloud.com/31788
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Sonia Sharma <sonia.sharma@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/lnet/api-ni.c