[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091007063921.GA19756@helight>
Date: Wed, 7 Oct 2009 14:39:21 +0800
From: Zhenwen Xu <helight.xu@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Ingo Molnar <mingo@...hat.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Steven Rostedt <rostedt@...dmis.org>
Subject: [PATCH] fix a warning on kernel/trace/trace_branch.c
fix this warning:
kernel/trace/trace_branch.c: In function ‘probe_likely_condition’:
kernel/trace/trace_branch.c:58: warning: passing argument 1 of ‘
trace_buffer_lock_reserve’ from incompatible pointer type
The "tr" should be "(struct buffer *)tr" or "tr->buffer" here!!!
Signed-off-by: Zhenwen Xu <helight.xu@...il.com>
---
kernel/trace/trace_branch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
index 7a7a9fd..216e2dd 100644
--- a/kernel/trace/trace_branch.c
+++ b/kernel/trace/trace_branch.c
@@ -54,7 +54,7 @@ probe_likely_condition(struct ftrace_branch_data *f, int val, int expect)
goto out;
pc = preempt_count();
- event = trace_buffer_lock_reserve(tr, TRACE_BRANCH,
+ event = trace_buffer_lock_reserve(tr->buffer, TRACE_BRANCH,
sizeof(*entry), flags, pc);
if (!event)
goto out;
--
1.6.3.3
--
--------------------------------
http://zhwen.org - Open and Free
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists