Whamcloud - gitweb
LU-9118 o2iblnd: handle MOFED libcfs time api collision 64/25564/6
authorJames Simmons <uja.ornl@yahoo.com>
Wed, 22 Feb 2017 22:31:06 +0000 (17:31 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 2 Mar 2017 06:56:59 +0000 (06:56 +0000)
commitf548d1a00eaf705607b0c1eac254c95e3905f5b2
tree0dab75757e141a16923760ff535a9ec65242d4bd
parent147529f46ca5b5f243d6d5cb1b636e273993be54
LU-9118 o2iblnd: handle MOFED libcfs time api collision

Both libcfs and the MOFED 4 stack define
ktime_get_real_ns() for platforms that lack it.
The solution is to reverse the logic of testing
for ktime_get_real_ns() done by lustre. This way
we avoid the HAVE_KTIME_GET_REAL_NS collision.
Also to ensure older platforms with an older OFED
stack still will build only turn off NEED_KTIME_GET_REAL_NS
set by libcfs in o2iblnd.h when the OFED stack
has defined LINUX_3_17_COMPAT_H. The compat-3.17.h
OFED header is where ktime_get_real_ns() gets defined
when its lacking on the native platform.

Test-Parameters: trivial

Change-Id: I44966f22cfbb6138fa7bc3fa47148a6f0a94ebd4
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/25564
Tested-by: Jenkins
Reviewed-by: Olaf Weber <olaf@sgi.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/linux-time.h
lnet/klnds/o2iblnd/o2iblnd.h