call_rcu implementation: add missing static
authorLai Jiangshan <laijs@cn.fujitsu.com>
Thu, 15 Sep 2011 14:56:56 +0000 (10:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 15 Sep 2011 14:56:56 +0000 (10:56 -0400)
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-call-rcu-impl.h

index c14cc18bde825c6c3cfec1557222e764c88f85a9..700d1289192a31a5f2693cf79e4efd99be993220 100644 (file)
@@ -383,7 +383,7 @@ struct call_rcu_data *create_call_rcu_data(unsigned long flags,
 
 int set_cpu_call_rcu_data(int cpu, struct call_rcu_data *crdp)
 {
-       int warned = 0;
+       static int warned = 0;
 
        call_rcu_lock(&call_rcu_mutex);
        if (cpu < 0 || maxcpus <= cpu) {
This page took 0.025775 seconds and 4 git commands to generate.