[ltt-dev] [PATCH 01/10] add missing static

Lai Jiangshan laijs at cn.fujitsu.com
Thu Sep 15 01:38:56 EDT 2011


Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
---
 urcu-call-rcu-impl.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h
index c14cc18..700d128 100644
--- a/urcu-call-rcu-impl.h
+++ b/urcu-call-rcu-impl.h
@@ -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) {
-- 
1.7.4.4





More information about the lttng-dev mailing list