From: Devendra Naga <devendra.aaru@gmail.com>
To: rostedt@goodmis.org, fweisbec@gmail.com, mingo@redhat.com,
linux-kernel@vger.kernel.org
Cc: Devendra Naga <devendra.aaru@gmail.com>
Subject: [PATCH 1/1] Fix Compilation Warning in kernel/trace/trace.c
Date: Fri, 16 Dec 2011 02:15:24 -0500 [thread overview]
Message-ID: <1324019724-3422-1-git-send-email-devendra.aaru@gmail.com> (raw)
there was a compilation warning saying
kernel/trace/trace.c:3644:8: warning: ‘page2’ may be used uninitialized in this function
The page2 pointer is used only when nr_pages = 2.
Assigned a null value to the page2 to get rid of warning.
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
---
kernel/trace/trace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index f2bd275..80dfd92 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -3641,7 +3641,7 @@ tracing_mark_write(struct file *filp, const char __user *ubuf,
int nr_pages = 1;
ssize_t written;
void *page1;
- void *page2;
+ void *page2 = NULL;
int offset;
int size;
int len;
--
1.7.4.1
next reply other threads:[~2011-12-16 7:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-16 7:15 Devendra Naga [this message]
2011-12-16 12:40 ` [PATCH 1/1] Fix Compilation Warning in kernel/trace/trace.c Steven Rostedt
[not found] ` <CAHdPZaN3KQRqSOMXV7HdJkw_T_J5D3s3pxDXY72V4iT_tR9NBQ@mail.gmail.com>
2011-12-16 15:28 ` Steven Rostedt
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=1324019724-3422-1-git-send-email-devendra.aaru@gmail.com \
--to=devendra.aaru@gmail.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox