I am porting this to b2_1 which is on later kernel 2.6.32-279.22.1.el6, and I am seeing this broken during build
Type 'make' to build Lustre.
+ make -j 8 -s
Making all in .
In file included from /root/lu1468/BUILD/compat-rdma-devel/usr/src/compat-rdma/include/linux/compat-2.6.h:53,
from /root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.h:83,
from /root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.c:43:
/root/lu1468/BUILD/compat-rdma-devel/usr/src/compat-rdma/include/linux/compat-2.6.34.h:290:1: error: "rcu_dereference_protected" redefined
In file included from include/linux/tracepoint.h:18,
from /root/lu1468/BUILD/compat-rdma-devel/usr/src/compat-rdma/include/linux/tracepoint.h:19,
from include/linux/module.h:18,
from /root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.h:49,
from /root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.c:43:
include/linux/rcupdate.h:256:1: error: this is the location of the previous definition
In file included from /root/lu1468/BUILD/compat-rdma-devel/usr/src/compat-rdma/include/linux/compat-2.6.h:59,
from /root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.h:83,
from /root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.c:43:
/root/lu1468/BUILD/compat-rdma-devel/usr/src/compat-rdma/include/linux/compat-3.0.h:90:1: error: "kfree_rcu" redefined
In file included from include/linux/tracepoint.h:18,
from /root/lu1468/BUILD/compat-rdma-devel/usr/src/compat-rdma/include/linux/tracepoint.h:19,
from include/linux/module.h:18,
from /root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.h:49,
from /root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.c:43:
include/linux/rcupdate.h:389:1: error: this is the location of the previous definition
make[7]: *** [/root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd/o2iblnd.o] Error 1
make[6]: *** [/root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds/o2iblnd] Error 2
make[5]: *** [/root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet/klnds] Error 2
make[4]: *** [/root/lu1468/BUILD/BUILD/lustre-2.1.4/lnet] Error 2
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [_module_/root/lu1468/BUILD/BUILD/lustre-2.1.4] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.5kT5mc (%build)
patch http://review.whamcloud.com/#change,5688
Shuichi Ihara (sihara@ddn.com) uploaded a new patch: http://review.whamcloud.com/12739
Subject:
LU-1468o2iblnd: patch to support OFED-3.5Project: fs/lustre-release
Branch: b1_8
Current Patch Set: 1
Commit: ddf1a2a25d3d54530587d972d5dec1aec0f63c82