Whamcloud - gitweb
LU-14195 obdclass: change list_sort to use const pointers 19/45219/2
authorJian Yu <yujian@whamcloud.com>
Wed, 13 Oct 2021 07:12:03 +0000 (00:12 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 27 Oct 2021 00:38:17 +0000 (00:38 +0000)
commite612dcbbdd208ff0919a8c108448bbfa846e8ee6
tree05a9bb3c9f0de86789ec9f84746322b3949faee2
parent12b05772fdb6d080819b6c213fcd7f8705278412
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.

Change-Id: I40d37ec0f0d485d0deebaa9dc3493f2865f76ec9
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45219
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
lustre/obdclass/cl_io.c