From 5b5aa8028d9dd496cc1c9490c05f8600effec127 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Wed, 4 Mar 2015 11:06:17 +0200 Subject: [PATCH] Fix typos in rdma.m4 Signed-off-by: Vladimir Sokolovsky --- config/rdma.m4 | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/config/rdma.m4 b/config/rdma.m4 index fc0ae33..68e0dd1 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -618,7 +618,7 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], LB_LINUX_TRY_COMPILE([ #include ],[ - struct ifla_vf_info x; + struct ifla_vf_info *x; x->linkstate = 0; return 0; @@ -867,15 +867,15 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) - AC_MSG_CHECKING([if drivers/net/bonding/bonding.h exists]) + AC_MSG_CHECKING([if include/net/bonding.h exists]) LB_LINUX_TRY_COMPILE([ - #include "../drivers/net/bonding/bonding.h" + #include ],[ return 0; ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_BONDING_H, 1, - [drivers/net/bonding/bonding.h exists]) + [include/net/bonding.h exists]) ],[ AC_MSG_RESULT(no) ]) @@ -1084,15 +1084,11 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_CHECKING([if struct net_device_ops has *ndo_setup_tc]) LB_LINUX_TRY_COMPILE([ #include - - int setup_tc(struct net_device *dev, , u8 tc) - { - return 0; - } ],[ - struct net_device_ops netdev_ops; + struct net_device_ops x = { + .ndo_setup_tc = NULL, + }; - netdev_ops.ndo_setup_tc = setup_tc; return 0; ],[ AC_MSG_RESULT(yes) @@ -1193,10 +1189,8 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], } ],[ struct net_device_ops netdev_ops; - struct net_device *dev; netdev_ops.ndo_vlan_rx_add_vid = vlan_rx_add_vid; - netdev_ops.ndo_vlan_rx_add_vid(dev, 0, 0); return 0; ],[ @@ -1688,9 +1682,12 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_CHECKING([if irqdesc.h has irq_desc_get_irq_data]) LB_LINUX_TRY_COMPILE([ + #include #include ],[ - struct irq_data *data = irq_desc_get_irq_data(NULL); + struct irq_desc desc; + struct irq_data *data = irq_desc_get_irq_data(&desc); + return 0; ],[ AC_MSG_RESULT(yes) @@ -1705,9 +1702,9 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], LB_LINUX_TRY_COMPILE([ #include ],[ - struct pci_dev pdev; + struct pci_dev *pdev; - pdev.pcie_mpss = 0; + pdev->pcie_mpss = 0; return 0; ],[ AC_MSG_RESULT(yes) @@ -1846,7 +1843,7 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_NETDEV_MASTER_UPPER_DEV_GET_RCU, 1, - [netdevice.h has netdev_master_upper_dev_get_rcu]) + [netdev_master_upper_dev_get_rcu is defined]) ],[ AC_MSG_RESULT(no) ]) -- 2.41.0