From 7a5ad2a3fccdf57c50cba6ddc953a9535bb03cfb Mon Sep 17 00:00:00 2001 From: Timothy Day Date: Thu, 7 Dec 2023 05:12:57 +0000 Subject: [PATCH] LU-17342 o2ib: build without Module.symvers When building against an external kernel tree, the configure script fails if there isn't a Module.symvers available. This prevents us from using the 'modules_prepare' make target on the kernel tree. ko2iblnd.ko can be build even without Module.symvers. Hence, downgrade this message from an error to a warning. Also, don't fail if ko2iblnd can't be built. Just emit a warning. Test-Parameters: trivial Signed-off-by: Timothy Day Change-Id: I8bca7f945c753fdac3aa5d9889d3347613baf059 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53358 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Shaun Tancheff Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lnet/autoconf/lustre-lnet.m4 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 3a58fc9..7498ac0 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -340,12 +340,11 @@ Auto detection of external O2IB failed. Build of external o2ib disabled.]) INT_O2IB_SYMBOLS="${CHECK_SYMBOLS}" fi else - AC_MSG_WARN([Module.symvers for in-kernel o2iblnd was not found, in-kernel ofed will not be built]) - BUILT_IN_KO2IBLND="no" + AC_MSG_WARN([Module.symvers for in-kernel o2iblnd was not found]) fi if test "x$EXTERNAL_KO2IBLND" = "xno" -a "x$BUILT_IN_KO2IBLND" = "xno" ; then - AC_MSG_ERROR([No o2iblnd can be built]) + AC_MSG_WARN([No o2iblnd can be built]) elif test "x$ENABLE_MULTIPLE_LNDS" = "xno" -a \ "x$EXTERNAL_KO2IBLND" != "xno" -a "x$BUILT_IN_KO2IBLND" != "xno"; then AC_MSG_WARN([ -- 1.8.3.1