linux-next: build failure after merge of the net-next tree
Subsystems (4)
Hi all,
After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/net/ethernet/mellanox/mlx5/core/main.c: In function 'mlx5_irq_set_affinity_hint':drivers/net/ethernet/mellanox/mlx5/core/main.c:474:2: error: implicit declaration of function 'cpumask_set_cpu_local_first' [-Werror=implicit-function-declaration]
err = cpumask_set_cpu_local_first(i, numa_node, priv->irq_info[i].mask);
^
Caused by commit db058a186f98 ("net/mlx5_core: Set irq affinity hints") interacting with commit f36963c9d3f6 ("cpumask_set_cpu_local_first => cpumask_local_spread, lament") from Linus' tree.
I have applied the following merge fix patch (Dave, you could do this by back merging commit f36963c9d3f6 from Linus' tree - which is based on v4.1-rc2 if that worries you). Please yell if this is not correct (it does build).
From: Stephen Rothwell <[email protected]>
Date: Mon, 1 Jun 2015 13:36:49 +1000
Subject: [PATCH] net/mlx5_core: merge fix for cpumask_set_cpu_local_first API change
--- drivers/net/ethernet/mellanox/mlx5/core/main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/main.c +2 -5
@@ -471,11 +471,8 @@ static int mlx5_irq_set_affinity_hint(struct mlx5_core_dev *mdev, int i)return -ENOMEM ; } - err =cpumask_set_cpu_local_first (i, numa_node, priv->irq_info[i].mask); -if (err) { -mlx5_core_warn (mdev,"cpumask_set_cpu_local_first failed" ); - goto err_clear_mask; - } +cpumask_set_cpu (cpumask_local_spread (i, numa_node), + priv->irq_info[i].mask); err =irq_set_affinity_hint (irq, priv->irq_info[i].mask);if (err) {
Signature · 5 lines
2.1.4 -- Cheers, Stephen Rothwell [email protected]
David Miller
maintainerFrom: Stephen Rothwell <[email protected]>
Date: Mon, 1 Jun 2015 13:44:13 +1000
Quoted 8 lines
After merging the net-next tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/net/ethernet/mellanox/mlx5/core/main.c: In function 'mlx5_irq_set_affinity_hint':drivers/net/ethernet/mellanox/mlx5/core/main.c:474:2: error: implicit declaration of function 'cpumask_set_cpu_local_first' [-Werror=implicit-function-declaration]
err =cpumask_set_cpu_local_first(i, numa_node, priv->irq_info[i].mask);
^
Quoted 8 lines
Caused by commit
db058a186f98("net/mlx5_core: Set irq affinity hints") interacting with commitf36963c9d3f6("cpumask_set_cpu_local_first=>cpumask_local_spread, lament") from Linus' tree.I have applied the following merge fix patch (Dave, you could do this by back merging commit
f36963c9d3f6from Linus' tree - which is based on v4.1-rc2 if that worries you). Please yell if this is not correct (it does build).
Thanks Stephen, I'll take care of this next time I merge.