From: Dan Carpenter <dan.carpenter@oracle.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Tim Bird <tim.bird@sonymobile.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] ARM: qcom: silence an uninitialized variable warning
Date: Thu, 14 Apr 2016 09:03:09 +0000 [thread overview]
Message-ID: <20160414090309.GF4247@mwanda> (raw)
In-Reply-To: <201604140353.03595.arnd@arndb.de>
On Thu, Apr 14, 2016 at 03:53:03AM +0200, Arnd Bergmann wrote:
> On Wednesday 13 April 2016, Dan Carpenter wrote:
> > It's harmless but, if "enable" isn't set, then we pass uninitialized
> > values to qcom_coincell_chgr_config(). The values aren't used, but
> > let's silence the warning anyway.
> >
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> I haven't seen this warning in my tests, which means it probably doesn't show up
> in the usual configurations. Are you sure this doesn't just happen with
> CONFIG_PROFILE_ALL_BRANCHES, CONFIG_CC_OPTIMIZE_FOR_SIZE or CONFIG_GCOV_PROFILE_ALL,
> or with versions of gcc before 4.9?
>
This is a smatch stuff I'm working on. Realistically, I have to make
Smatch warn when we pass uninitialized values to a function. I can't
make smatch do the extra analysis to test if the values are used or not.
regards,
dan carpenter
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Tim Bird <tim.bird@sonymobile.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] ARM: qcom: silence an uninitialized variable warning
Date: Thu, 14 Apr 2016 12:03:09 +0300 [thread overview]
Message-ID: <20160414090309.GF4247@mwanda> (raw)
In-Reply-To: <201604140353.03595.arnd@arndb.de>
On Thu, Apr 14, 2016 at 03:53:03AM +0200, Arnd Bergmann wrote:
> On Wednesday 13 April 2016, Dan Carpenter wrote:
> > It's harmless but, if "enable" isn't set, then we pass uninitialized
> > values to qcom_coincell_chgr_config(). The values aren't used, but
> > let's silence the warning anyway.
> >
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> I haven't seen this warning in my tests, which means it probably doesn't show up
> in the usual configurations. Are you sure this doesn't just happen with
> CONFIG_PROFILE_ALL_BRANCHES, CONFIG_CC_OPTIMIZE_FOR_SIZE or CONFIG_GCOV_PROFILE_ALL,
> or with versions of gcc before 4.9?
>
This is a smatch stuff I'm working on. Realistically, I have to make
Smatch warn when we pass uninitialized values to a function. I can't
make smatch do the extra analysis to test if the values are used or not.
regards,
dan carpenter
next prev parent reply other threads:[~2016-04-14 9:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 6:45 [patch] ARM: qcom: silence an uninitialized variable warning Dan Carpenter
2016-04-13 6:45 ` Dan Carpenter
2016-04-14 0:35 ` Tim Bird
2016-04-14 0:35 ` Tim Bird
2016-04-14 1:53 ` Arnd Bergmann
2016-04-14 1:53 ` Arnd Bergmann
2016-04-14 9:03 ` Dan Carpenter [this message]
2016-04-14 9:03 ` Dan Carpenter
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=20160414090309.GF4247@mwanda \
--to=dan.carpenter@oracle.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tim.bird@sonymobile.com \
/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.