]> Git Repo - linux.git/commitdiff
genirq/affinity: Remove const qualifier from node_to_cpumask argument
authorMing Lei <[email protected]>
Wed, 28 Aug 2019 08:58:15 +0000 (16:58 +0800)
committerThomas Gleixner <[email protected]>
Wed, 28 Aug 2019 10:20:43 +0000 (12:20 +0200)
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 <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
kernel/irq/affinity.c

index d905e844bf3ab0163d06c20512cc93828a7cd3c8..4d89ad4fae3bb15e5c500a6ccc2f19aa9d63367b 100644 (file)
@@ -126,7 +126,7 @@ static int ncpus_cmp_func(const void *l, const void *r)
  * for each node.
  */
 static void alloc_nodes_vectors(unsigned int numvecs,
-                               const cpumask_var_t *node_to_cpumask,
+                               cpumask_var_t *node_to_cpumask,
                                const struct cpumask *cpu_mask,
                                const nodemask_t nodemsk,
                                struct cpumask *nmsk,
This page took 0.073142 seconds and 4 git commands to generate.