From b19c8c27593f99b550e8524753a0f680dd3d32c8 Mon Sep 17 00:00:00 2001 From: Steve Wise Date: Thu, 20 Nov 2014 16:27:47 -0600 Subject: [PATCH] Add HAVE_BOND_FOR_EACH_SLAVE_3_PARAMS check Signed-off-by: Steve Wise --- config/rdma.m4 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config/rdma.m4 b/config/rdma.m4 index c66bc7c..979f977 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -723,6 +723,25 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if bonding.h bond_for_each_slave has 3 parameters]) + LB_LINUX_TRY_COMPILE([ + #include "../drivers/net/bonding/bonding.h" + ],[ + struct bonding *bond = NULL; + struct list_head *iter = NULL; + struct slave *slave = NULL; + + bond_for_each_slave(bond, slave, iter) ; + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_BOND_FOR_EACH_SLAVE_3_PARAMS, 1, + [bond_for_each_slave has 3 parameters]) + ],[ + AC_MSG_RESULT(no) + ]) + ]) # # COMPAT_CONFIG_HEADERS -- 2.46.0