Whamcloud - gitweb
LU-13581 build: xarray and lockdep_is_held const clash 50/39150/4
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sun, 28 Jun 2020 03:06:28 +0000 (22:06 -0500)
committerOleg Drokin <green@whamcloud.com>
Sun, 5 Jul 2020 00:18:06 +0000 (00:18 +0000)
commit3fcceea0e301c51a29d641c287bd36302a706bbe
treef388e0661d6fa43137f5584caa77a40f5fc37b49
parent593d02f2245d941f2ea0ac847aa2de215c83187e
LU-13581 build: xarray and lockdep_is_held const clash

xarray support added to lustre breaks building with RHEL
debug kernels. The root cause is due to an change in
the signature of lock_is_held when CONFIG_LOCKDEP is enabled.

Provide a workaround when the const mismatch conditions
exist to enable building RHEL debug kernel packages.

Also narrow the test for xarray support to explicitly require
xa_is_value be defined to protect against relying on
incomplete xarray support.

The same xarray issue is present in MOFED 5 so the same
scheme is used to protect lock_is_held change to require
const parameter from breaking.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Icd51cfb111be6b30adf6f720fb680459ca8cf5b4
Reviewed-on: https://review.whamcloud.com/39150
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-build-linux.m4
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/xarray.h
libcfs/libcfs/linux/xarray.c
lnet/klnds/o2iblnd/o2iblnd.h
lustre/include/lustre_compat.h
lustre/tests/conf-sanity.sh