From a0b4d936c02a5275606517f8b002e5cbdfeae6ff Mon Sep 17 00:00:00 2001 From: Serguei Smirnov Date: Tue, 6 Apr 2021 15:54:01 -0700 Subject: [PATCH] LU-14588 o2ib: make config script aware of the ofed symbols LNet o2ib configuration script needs to be aware of the external ofed dkms symbols when testing for availability of o2ib features by building "conftest" kernel objects. If this is not done, symbols from the core kernel are used by default which is different from what is used when actually building LNet, at least on Ubuntu. This patch adds the check for external symbols. Lustre-commit: bcc5d784826d2d7a8eece28e96fab8b0fa02ab17 Lustre-change: https://review.whamcloud.com/43223 Test-Parameters: trivial Signed-off-by: Serguei Smirnov Change-Id: Iea566f8a3feb86b8bef2f4501a3abc968d76451a Reviewed-by: James Simmons Reviewed-by: Amir Shehata Reviewed-on: https://review.whamcloud.com/43459 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lnet/autoconf/lustre-lnet.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 9788c4f..5182fae 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -264,6 +264,7 @@ AC_SUBST(ENABLEO2IB) AS_IF([test $ENABLEO2IB != "no"], [ EXTRA_CHECK_INCLUDE="$EXTRA_OFED_CONFIG $EXTRA_OFED_INCLUDE" + KBUILD_EXTRA_SYMBOLS="$KBUILD_EXTRA_SYMBOLS $O2IBPATH/Module.symvers" # In RHEL 6.2, rdma_create_id() takes the queue-pair type as a fourth argument LB_CHECK_COMPILE([if 'rdma_create_id' wants four args], -- 1.8.3.1