All of lore.kernel.org
 help / color / mirror / Atom feed
From: GuoWen Li <guowen.li.linux@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix compiler warning in ftrace.c
Date: Wed, 1 Jun 2011 19:18:47 +0800	[thread overview]
Message-ID: <201106011918.47939.guowen.li.linux@gmail.com> (raw)

kernel/trace/ftrace.c: In function ‘ftrace_regex_write.clone.15’:
kernel/trace/ftrace.c:2743:6: warning: ‘ret’ may be used uninitialized in this 
function

Signed-off-by: GuoWen Li
---
 kernel/trace/ftrace.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 1ee417f..204b3eb 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2740,7 +2740,7 @@ static int ftrace_process_regex(struct ftrace_hash 
*hash,
 {
        char *func, *command, *next = buff;
        struct ftrace_func_command *p;
-       int ret;
+       int ret = -EINVAL;
 
        func = strsep(&next, ":");

             reply	other threads:[~2011-06-01 11:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 11:18 GuoWen Li [this message]
2011-06-03  2:45 ` [PATCH] Fix compiler warning in ftrace.c Steven Rostedt
2011-06-03  2:50 ` Steven Rostedt
2011-06-03  4:52   ` Guowen Li
2011-06-08 18:34 ` [tip:perf/urgent] ftrace: Fix possible undefined return code tip-bot for GuoWen Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201106011918.47939.guowen.li.linux@gmail.com \
    --to=guowen.li.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.