diff options
author | Ming Lei <ming.lei@redhat.com> | 2019-08-28 11:58:15 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-08-28 13:20:43 +0300 |
commit | 101f85b56d03b36418bbf867f67d81710839b0ec (patch) | |
tree | 0868b7ab4c245102cf798b9efefcc2f3a8952643 /Documentation/devicetree/bindings/interrupt-controller | |
parent | b1a5a73e64e99faa5f4deef2ae96d7371a0fb5d0 (diff) | |
download | linux-101f85b56d03b36418bbf867f67d81710839b0ec.tar.xz |
genirq/affinity: Remove const qualifier from node_to_cpumask argument
When CONFIG_CPUMASK_OFFSTACK isn't enabled, 'cpumask_var_t' is as
'typedef struct cpumask cpumask_var_t[1]',
so the argument 'node_to_cpumask' alloc_nodes_vectors() can't be declared
as 'const cpumask_var_t *'
Fixes the following warning:
kernel/irq/affinity.c: In function '__irq_build_affinity_masks':
alloc_nodes_vectors(numvecs, node_to_cpumask, cpu_mask,
^
kernel/irq/affinity.c:128:13: note: expected 'const struct cpumask (*)[1]' but argument is of type 'struct cpumask (*)[1]'
static void alloc_nodes_vectors(unsigned int numvecs,
^
Fixes: b1a5a73e64e9 ("genirq/affinity: Spread vectors on node according to nr_cpu ratio")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190828085815.19931-1-ming.lei@redhat.com
Diffstat (limited to 'Documentation/devicetree/bindings/interrupt-controller')
0 files changed, 0 insertions, 0 deletions