All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@codeaurora.org>
To: Sylvain Lemieux <slemieux.tyco@gmail.com>
Cc: mturquette@baylibre.com, stigge@antcom.de, vz@mleia.com,
	linux-clk@vger.kernel.org
Subject: Re: [PATCH v2] clk: lpc32xx: fix compilation warning
Date: Thu, 3 Mar 2016 11:43:23 -0800	[thread overview]
Message-ID: <20160303194322.GC24999@codeaurora.org> (raw)
In-Reply-To: <1456257369-22342-1-git-send-email-slemieux.tyco@gmail.com>

On 02/23, Sylvain Lemieux wrote:
> From: Sylvain Lemieux <slemieux@tycoint.com>
> 
> Remove the following false positives compilation warning:
> - drivers/clk/nxp/clk-lpc32xx.c: In function 'lpc32xx_clk_register':
>   warning: 'hw' may be used uninitialized in this function [-Wmaybe-uninitialized]
> - drivers/clk/nxp/clk-lpc32xx.c: In function 'clk_hclk_pll_round_rate':
>   warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
>   warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
> 
> Tested using gcc version 4.7.3.
> 
> Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
> ---

Applied to clk-next but I dropped the assignment of hw to NULL
part because the return takes care of it and is less likely to
lead to use of an uninitialized variable.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

      reply	other threads:[~2016-03-03 19:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-23 19:56 [PATCH v2] clk: lpc32xx: fix compilation warning Sylvain Lemieux
2016-03-03 19:43 ` Stephen Boyd [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=20160303194322.GC24999@codeaurora.org \
    --to=sboyd@codeaurora.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=slemieux.tyco@gmail.com \
    --cc=stigge@antcom.de \
    --cc=vz@mleia.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.