From: Ingo Molnar <mingo@elte.hu>
To: Jianjun Kong <jianjun@zeuux.org>
Cc: rusty@rustcorp.com.au,
Linux-Kernel-Mailing-List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/3] fix warning of not used variable
Date: Thu, 4 Dec 2008 11:12:23 +0100 [thread overview]
Message-ID: <20081204101223.GB18708@elte.hu> (raw)
In-Reply-To: <20081204010022.GB17445@ubuntu>
* Jianjun Kong <jianjun@zeuux.org> wrote:
>
> fix this warning:
> kernel/module.c:824: warning: ‘print_unload_info’ defined but not used
> print_unload_info() just used when CONFIG_PROC_FS was defined.
>
> Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
> ---
> kernel/module.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
NAK. Warnings do not need to be "fixed", then need to be looked at and
then there are two approaches:
1) GCC is wrong => annotate the code
2) GCC is right => fix the code
Your patch does not give us any idea about which case this is, whether
you have analyzed the reason why GCC emitted that warning.
Besides, i dont see such warnings in kernel/module.c with latest GCC.
Ingo
next prev parent reply other threads:[~2008-12-04 10:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 1:00 Jianjun Kong
2008-12-04 10:12 ` Ingo Molnar [this message]
2008-12-04 11:34 ` Américo Wang
2008-12-04 11:36 ` Américo Wang
2008-12-05 0:01 ` Rusty Russell
2008-12-06 0:52 ` Américo Wang
2008-12-06 2:29 ` Jianjun Kong
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=20081204101223.GB18708@elte.hu \
--to=mingo@elte.hu \
--cc=jianjun@zeuux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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
all inboxes | Powered by JetHome®