|
Michal Suchanek |
5d5f43 |
From 101f85b56d03b36418bbf867f67d81710839b0ec Mon Sep 17 00:00:00 2001
|
|
Michal Suchanek |
5d5f43 |
From: Ming Lei <ming.lei@redhat.com>
|
|
Michal Suchanek |
5d5f43 |
Date: Wed, 28 Aug 2019 16:58:15 +0800
|
|
Michal Suchanek |
5d5f43 |
Subject: [PATCH] genirq/affinity: Remove const qualifier from node_to_cpumask
|
|
Michal Suchanek |
5d5f43 |
argument
|
|
Michal Suchanek |
5d5f43 |
|
|
Michal Suchanek |
5d5f43 |
References: bsc#1174897 ltc#187090
|
|
Michal Suchanek |
5d5f43 |
Patch-mainline: v5.4-rc1
|
|
Michal Suchanek |
5d5f43 |
Git-commit: 101f85b56d03b36418bbf867f67d81710839b0ec
|
|
Michal Suchanek |
5d5f43 |
|
|
Michal Suchanek |
5d5f43 |
When CONFIG_CPUMASK_OFFSTACK isn't enabled, 'cpumask_var_t' is as
|
|
Michal Suchanek |
5d5f43 |
|
|
Michal Suchanek |
5d5f43 |
'typedef struct cpumask cpumask_var_t[1]',
|
|
Michal Suchanek |
5d5f43 |
|
|
Michal Suchanek |
5d5f43 |
so the argument 'node_to_cpumask' alloc_nodes_vectors() can't be declared
|
|
Michal Suchanek |
5d5f43 |
as 'const cpumask_var_t *'
|
|
Michal Suchanek |
5d5f43 |
|
|
Michal Suchanek |
5d5f43 |
Fixes the following warning:
|
|
Michal Suchanek |
5d5f43 |
|
|
Michal Suchanek |
5d5f43 |
kernel/irq/affinity.c: In function '__irq_build_affinity_masks':
|
|
Michal Suchanek |
5d5f43 |
alloc_nodes_vectors(numvecs, node_to_cpumask, cpu_mask,
|
|
Michal Suchanek |
5d5f43 |
^
|
|
Michal Suchanek |
5d5f43 |
kernel/irq/affinity.c:128:13: note: expected 'const struct cpumask (*)[1]' but argument is of type 'struct cpumask (*)[1]'
|
|
Michal Suchanek |
5d5f43 |
static void alloc_nodes_vectors(unsigned int numvecs,
|
|
Michal Suchanek |
5d5f43 |
^
|
|
Michal Suchanek |
5d5f43 |
Fixes: b1a5a73e64e9 ("genirq/affinity: Spread vectors on node according to nr_cpu ratio")
|
|
Michal Suchanek |
5d5f43 |
Reported-by: kbuild test robot <lkp@intel.com>
|
|
Michal Suchanek |
5d5f43 |
Signed-off-by: Ming Lei <ming.lei@redhat.com>
|
|
Michal Suchanek |
5d5f43 |
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
Michal Suchanek |
5d5f43 |
Link: https://lkml.kernel.org/r/20190828085815.19931-1-ming.lei@redhat.com
|
|
Michal Suchanek |
5d5f43 |
Acked-by: Michal Suchanek <msuchanek@suse.de>
|
|
Michal Suchanek |
5d5f43 |
---
|
|
Michal Suchanek |
5d5f43 |
kernel/irq/affinity.c | 2 +-
|
|
Michal Suchanek |
5d5f43 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Michal Suchanek |
5d5f43 |
|
|
Michal Suchanek |
5d5f43 |
diff --git a/kernel/irq/affinity.c b/kernel/irq/affinity.c
|
|
Michal Suchanek |
5d5f43 |
index d905e844bf3a..4d89ad4fae3b 100644
|
|
Michal Suchanek |
5d5f43 |
--- a/kernel/irq/affinity.c
|
|
Michal Suchanek |
5d5f43 |
+++ b/kernel/irq/affinity.c
|
|
Michal Suchanek |
5d5f43 |
@@ -126,7 +126,7 @@ static int ncpus_cmp_func(const void *l, const void *r)
|
|
Michal Suchanek |
5d5f43 |
* for each node.
|
|
Michal Suchanek |
5d5f43 |
*/
|
|
Michal Suchanek |
5d5f43 |
static void alloc_nodes_vectors(unsigned int numvecs,
|
|
Michal Suchanek |
5d5f43 |
- const cpumask_var_t *node_to_cpumask,
|
|
Michal Suchanek |
5d5f43 |
+ cpumask_var_t *node_to_cpumask,
|
|
Michal Suchanek |
5d5f43 |
const struct cpumask *cpu_mask,
|
|
Michal Suchanek |
5d5f43 |
const nodemask_t nodemsk,
|
|
Michal Suchanek |
5d5f43 |
struct cpumask *nmsk,
|
|
Michal Suchanek |
5d5f43 |
--
|
|
Michal Suchanek |
5d5f43 |
2.26.2
|
|
Michal Suchanek |
5d5f43 |
|