The header file rdma_cm.h refers to the fc_compat.h
header for a function declaration. Lustre test to
see if certain infiniband features are available but
in order for those test to work properly the
fc_compact.h header must be included. Otherwise the
test will always fail thus disabling potential
features. This patch includes fc_compact.h when needed.
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I9e6a9726dec04b3acd5898d6f633ef510144e4b2
Reviewed-on: http://review.whamcloud.com/7488
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
if test $ENABLEO2IB -ne 0; then
AC_MSG_CHECKING([if rdma_create_id wants four args])
LB_LINUX_TRY_COMPILE([
+ #if !defined(HAVE_OFED_BACKPORT_H) && defined(HAVE_SCSI_FC_COMPAT_H)
+ #include <scsi/fc_compat.h>
+ #endif
#include <rdma/rdma_cm.h>
],[
rdma_create_id(NULL, NULL, 0, 0);
#if !HAVE_GFP_T
typedef int gfp_t;
#endif
+ #if !defined(HAVE_OFED_BACKPORT_H) && defined(HAVE_SCSI_FC_COMPAT_H)
+ #include <scsi/fc_compat.h>
+ #endif
#include <rdma/rdma_cm.h>
],[
return (RDMA_CM_EVENT_ADDR_CHANGE == 0);
#if !HAVE_GFP_T
typedef int gfp_t;
#endif
+ #if !defined(HAVE_OFED_BACKPORT_H) && defined(HAVE_SCSI_FC_COMPAT_H)
+ #include <scsi/fc_compat.h>
+ #endif
#include <rdma/rdma_cm.h>
],[
return (RDMA_CM_EVENT_TIMEWAIT_EXIT == 0);