AC_DEFUN([LN_CONFIG_MAX_PAYLOAD],
[AC_MSG_CHECKING([for non-default maximum LNET payload])
AC_ARG_WITH([max-payload-mb],
- AC_HELP_STRING([--with-max-payload-mb=MBytes],
+ AC_HELP_STRING([--with-max-payload-mb=MBytes],
[set maximum lnet payload in MBytes]),
[
AC_MSG_RESULT([$with_max_payload_mb])
AC_DEFINE(LIBCFS_DEBUG, 1, [enable libcfs LASSERT, LASSERTF])
fi
])
-
+
#
# LN_CONFIG_AFFINITY
#
cpumask_t m;
#else
unsigned long m;
- #endif
+ #endif
set_cpus_allowed(&t, m);
],[
AC_DEFINE(CPU_AFFINITY, 1, [kernel has cpu affinity support])
AC_DEFUN([LN_CONFIG_PORTALS],
[AC_MSG_CHECKING([for portals])
AC_ARG_WITH([portals],
- AC_HELP_STRING([--with-portals=path],
+ AC_HELP_STRING([--with-portals=path],
[set path to portals]),
[
case $with_portals in
ENABLEPORTALS=1
;;
esac
-
], [
ENABLEPORTALS=0
])
#include <rdma/ib_verbs.h>
#include <rdma/ib_fmr_pool.h>
],[
- struct rdma_cm_id *cm_id;
+ struct rdma_cm_id *cm_id;
struct rdma_conn_param conn_param;
struct ib_device_attr device_attr;
struct ib_qp_attr qp_attr;
- struct ib_pool_fmr pool_fmr;
+ struct ib_pool_fmr pool_fmr;
enum ib_cm_rej_reason rej_reason;
cm_id = rdma_create_id(NULL, NULL, RDMA_PS_TCP);
*) AC_MSG_ERROR([internal error]);;
esac
else
- case $ENABLEOPENIB in
+ case $ENABLEOPENIB in
1|2) OPENIBCPPFLAGS="-I$OPENIBPATH/include -DIN_TREE_BUILD";;
3) OPENIBCPPFLAGS="-I$OPENIBPATH/include";;
*) AC_MSG_RESULT([no])
#include <ts_ib_cm.h>
#include <ts_ib_sa_client.h>
],[
- struct ib_device_properties dev_props;
+ struct ib_device_properties dev_props;
struct ib_cm_active_param cm_active_params;
tTS_IB_CLIENT_QUERY_TID tid;
int enum1 = IB_QP_ATTRIBUTE_STATE;
#include <ts_ib_cm.h>
#include <ts_ib_sa_client.h>
],[
- struct ib_device_properties dev_props;
+ struct ib_device_properties dev_props;
struct ib_cm_active_param cm_active_params;
tTS_IB_CLIENT_QUERY_TID tid;
int enum1 = TS_IB_QP_ATTRIBUTE_STATE;
EXTRA_KCFLAGS_save="$EXTRA_KCFLAGS"
EXTRA_KCFLAGS="$EXTRA_KCFLAGS $VIBCPPFLAGS"
LB_LINUX_TRY_COMPILE([
- #include <linux/list.h>
+ #include <linux/list.h>
#include <asm/byteorder.h>
#ifdef __BIG_ENDIAN
# define CPU_BE 1
# define CPU_BE 0
# define CPU_LE 1
#endif
- #include <vverbs.h>
+ #include <vverbs.h>
#include <ib-cm.h>
#include <ibat.h>
],[
EXTRA_KCFLAGS="$EXTRA_KCFLAGS $VIBCPPFLAGS"
AC_MSG_CHECKING([if Voltaire still uses void * sg addresses])
LB_LINUX_TRY_COMPILE([
- #include <linux/list.h>
+ #include <linux/list.h>
#include <asm/byteorder.h>
#ifdef __BIG_ENDIAN
# define CPU_BE 1
# define CPU_BE 0
# define CPU_LE 1
#endif
- #include <vverbs.h>
+ #include <vverbs.h>
#include <ib-cm.h>
#include <ibat.h>
],[
])
# 2.6.19 API changes
-# kmem_cache_destroy(cachep) return void instead of
+# kmem_cache_destroy(cachep) return void instead of
# int
AC_DEFUN([LN_KMEM_CACHE_DESTROY_INT],
[AC_MSG_CHECKING([kmem_cache_destroy(cachep) return int])
[AC_MSG_CHECKING([panic_notifier_list is atomic])
LB_LINUX_TRY_COMPILE([
#include <linux/notifier.h>
- #include <linux/kernel.h>
+ #include <linux/kernel.h>
],[
struct atomic_notifier_head panic_notifier_list;
],[
])
])
-# 2.6.20 API change INIT_WORK use 2 args and not
+# 2.6.20 API change INIT_WORK use 2 args and not
# store data inside
AC_DEFUN([LN_3ARGS_INIT_WORK],
[AC_MSG_CHECKING([check INIT_WORK want 3 args])
])
])
+# asm/segment.h does not exist on all architectures.
+# e.g. the file is empty for ia64 and does not exist for PPC.
+AC_DEFUN([LC_SEGMENT_H],
+ [LB_CHECK_FILE([$LINUX/include/asm/segment.h],
+ [AC_MSG_CHECKING([if asm/segment.h is present])
+ LB_LINUX_TRY_COMPILE([#include <asm/segment.h>], [],
+ [AC_MSG_RESULT([yes])
+ AC_DEFINE(HAVE_SEGMENT_H, 1,
+ [asm/segment.h exists])],
+ [AC_MSG_RESULT([no])])])
+]) # LC_SEGMENT_H
+
#
# LN_PROG_LINUX
#
LN_KMEM_CACHE
# 2.6.23
LN_KMEM_CACHE_CREATE_DTOR
+# PPC/PPC64 support
+LC_SEGMENT_H
])
#