提交 89c96096 编写于 作者: R Ralf Baechle

[MIPS] IP27: Fix warning.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 31185131
...@@ -28,8 +28,6 @@ static cpumask_t ktext_repmask; ...@@ -28,8 +28,6 @@ static cpumask_t ktext_repmask;
*/ */
void __init setup_replication_mask(void) void __init setup_replication_mask(void)
{ {
cnodeid_t cnode;
/* Set only the master cnode's bit. The master cnode is always 0. */ /* Set only the master cnode's bit. The master cnode is always 0. */
cpus_clear(ktext_repmask); cpus_clear(ktext_repmask);
cpu_set(0, ktext_repmask); cpu_set(0, ktext_repmask);
...@@ -38,11 +36,15 @@ void __init setup_replication_mask(void) ...@@ -38,11 +36,15 @@ void __init setup_replication_mask(void)
#ifndef CONFIG_MAPPED_KERNEL #ifndef CONFIG_MAPPED_KERNEL
#error Kernel replication works with mapped kernel support. No calias support. #error Kernel replication works with mapped kernel support. No calias support.
#endif #endif
for_each_online_node(cnode) { {
if (cnode == 0) cnodeid_t cnode;
continue;
/* Advertise that we have a copy of the kernel */ for_each_online_node(cnode) {
cpu_set(cnode, ktext_repmask); if (cnode == 0)
continue;
/* Advertise that we have a copy of the kernel */
cpu_set(cnode, ktext_repmask);
}
} }
#endif #endif
/* Set up a GDA pointer to the replication mask. */ /* Set up a GDA pointer to the replication mask. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册