diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-09-22 14:21:16 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-09-23 09:18:56 +0200 |
commit | 22be9cd9f22a4b2acc5fe6666ca23206ebe4d495 (patch) | |
tree | 20fd93a283a4fcd5686dd725b94ebec3346e4e30 /arch/s390/numa/mode_emu.c | |
parent | bcee19f424a0d8c26ecf2607b73c690802658b29 (diff) | |
download | op-kernel-dev-22be9cd9f22a4b2acc5fe6666ca23206ebe4d495.zip op-kernel-dev-22be9cd9f22a4b2acc5fe6666ca23206ebe4d495.tar.gz |
s390/numa: use correct type for node_to_cpumask_map
With CONFIG_CPUMASK_OFFSTACK=y cpumask_var_t is a pointer to a CPU mask.
Replace the incorrect type for node_to_cpumask_map with cpumask_t.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/numa/mode_emu.c')
-rw-r--r-- | arch/s390/numa/mode_emu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/numa/mode_emu.c b/arch/s390/numa/mode_emu.c index 7de4e2f..30b2698a 100644 --- a/arch/s390/numa/mode_emu.c +++ b/arch/s390/numa/mode_emu.c @@ -368,7 +368,7 @@ static void topology_add_core(struct toptree *core) cpumask_copy(&top->thread_mask, &core->mask); cpumask_copy(&top->core_mask, &core_mc(core)->mask); cpumask_copy(&top->book_mask, &core_book(core)->mask); - cpumask_set_cpu(cpu, node_to_cpumask_map[core_node(core)->id]); + cpumask_set_cpu(cpu, &node_to_cpumask_map[core_node(core)->id]); top->node_id = core_node(core)->id; } } @@ -383,7 +383,7 @@ static void toptree_to_topology(struct toptree *numa) /* Clear all node masks */ for (i = 0; i < MAX_NUMNODES; i++) - cpumask_clear(node_to_cpumask_map[i]); + cpumask_clear(&node_to_cpumask_map[i]); /* Rebuild all masks */ toptree_for_each(core, numa, CORE) |