public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Fix compiler warning with selftest duration calculation
Date: Sat, 7 Oct 2017 09:45:04 +0300	[thread overview]
Message-ID: <20171007064504.GA11714@x1c.home> (raw)
In-Reply-To: <20171006184245.5525-1-marcel@holtmann.org>

Hi Marcel,

On Fri, Oct 06, 2017, Marcel Holtmann wrote:
>   CC      net/bluetooth/selftest.o
> net/bluetooth/selftest.c: In function ‘bt_selftest_init’:
> net/bluetooth/selftest.c:246:3: warning: ‘duration’ may be used uninitialized in this function [-Wmaybe-uninitialized]
>    snprintf(test_ecdh_buffer, sizeof(test_ecdh_buffer),
>    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>      "PASS (%llu usecs)\n", duration);
>      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> net/bluetooth/selftest.c:203:21: note: ‘duration’ was declared here
>   unsigned long long duration;
>                      ^~~~~~~~
> 
> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
> ---
>  net/bluetooth/selftest.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to bluetooth-next. Thanks.

Johan

      reply	other threads:[~2017-10-07  6:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-06 18:42 [PATCH] Bluetooth: Fix compiler warning with selftest duration calculation Marcel Holtmann
2017-10-07  6:45 ` Johan Hedberg [this message]

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=20171007064504.GA11714@x1c.home \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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