Skip to contentSkip to conversation

linux-next: build failure after merge of the rdma tree

PATCH Stephen Rothwell 1 participant 1 message Jan 13, 2016

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

Hi Doug,

After merging the rdma tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/infiniband/hw/mlx5/main.c: In function 'mlx5_ib_add':
drivers/infiniband/hw/mlx5/main.c:2255:6: error: too few arguments to function 'mlx5_ib_port_link_layer'
if (mlx5_ib_port_link_layer(&dev->ib_dev) ==

      ^

drivers/infiniband/hw/mlx5/main.c:89:1: note: declared here
mlx5_ib_port_link_layer(struct ib_device *device, u8 port_num) ^

Caused by commit

ebd61f68e1c7 ("IB/mlx5: Support IB device's callback for getting the link layer")

interacting with commit

038d2ef87572 ("IB/mlx5: Add flow steering support")

from the net-next tree.

I have added the following merge fix patch:

From: Stephen Rothwell <[email protected]>
Date: Wed, 13 Jan 2016 12:30:50 +1100
Subject: [PATCH] IB/mlx5: merge fix for mlx5_ib_port_link_layer API change

---
 drivers/infiniband/hw/mlx5/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx5/main.c +1 -1
index 307a8c040a11..a2613d828578 100644
@@ -2252,7 +2252,7 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
 			(1ull << IB_USER_VERBS_CMD_CLOSE_XRCD);
 	}
 
-	if (mlx5_ib_port_link_layer(&dev->ib_dev) ==
+	if (mlx5_ib_port_link_layer(&dev->ib_dev, 1) ==
 	    IB_LINK_LAYER_ETHERNET) {
 		dev->ib_dev.create_flow	= mlx5_ib_create_flow;
 		dev->ib_dev.destroy_flow = mlx5_ib_destroy_flow;
Signature · 5 lines
2.6.4

-- 
Cheers,
Stephen Rothwell                    [email protected]