diff options
author | Saeed Mahameed <[email protected]> | 2018-05-14 15:38:10 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-05-16 12:16:45 -0400 |
commit | e3ca34880652250f524022ad89e516f8ba9a805b (patch) | |
tree | 0cfffa6a2dbdc3bf42eac77ebedaa2eae2d4d16e | |
parent | ab452c3ce7bacb27ffe2fc0144aecd0c399e1e24 (diff) |
net/mlx5: Fix build break when CONFIG_SMP=n
Avoid using the kernel's irq_descriptor and return IRQ vector affinity
directly from the driver.
This fixes the following build break when CONFIG_SMP=n
include/linux/mlx5/driver.h: In function ‘mlx5_get_vector_affinity_hint’:
include/linux/mlx5/driver.h:1299:13: error:
‘struct irq_desc’ has no member named ‘affinity_hint’
Fixes: 6082d9c9c94a ("net/mlx5: Fix mlx5_get_vector_affinity function")
Signed-off-by: Saeed Mahameed <[email protected]>
CC: Randy Dunlap <[email protected]>
CC: Guenter Roeck <[email protected]>
CC: Thomas Gleixner <[email protected]>
Tested-by: Israel Rukshin <[email protected]>
Reported-by: kbuild test robot <[email protected]>
Reported-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-rw-r--r-- | include/linux/mlx5/driver.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 2a156c5dfadd..d703774982ca 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -1286,17 +1286,7 @@ enum { static inline const struct cpumask * mlx5_get_vector_affinity_hint(struct mlx5_core_dev *dev, int vector) { - struct irq_desc *desc; - unsigned int irq; - int eqn; - int err; - - err = mlx5_vector2eqn(dev, vector, &eqn, &irq); - if (err) - return NULL; - - desc = irq_to_desc(irq); - return desc->affinity_hint; + return dev->priv.irq_info[vector].mask; } #endif /* MLX5_DRIVER_H */ |