Whamcloud - gitweb
LU-14195 obdclass: change list_sort to use const pointers
authorJian Yu <yujian@whamcloud.com>
Wed, 13 Oct 2021 07:29:26 +0000 (00:29 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 13 Oct 2021 19:29:53 +0000 (19:29 +0000)
commit4086b15c2a515fb02577e7bb13282f2fd44065df
treebf8b42ac8345b65c6da6e5df8ab41cab82c03d8c
parent19a32eba737ca903216bcd5c285a008e34b8774e
LU-14195 obdclass: change list_sort to use const pointers

Kernel 5.10.70 commit 4f0f586bf0c898233d8f316f471a21db2abd522d
defines the list_cmp_func_t type and changes the comparison
function types of all list_sort() callers to use const pointers
to avoid type mismatches.

Lustre-change: https://review.whamcloud.com/45219
Lustre-commit: TBD (from 01ef4ea77d6798bfb7d9c94b3a4dc809838c07b0)

Change-Id: I40d37ec0f0d485d0deebaa9dc3493f2865f76ec9
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45220
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
lustre/obdclass/cl_io.c