From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Kirill Marinushkin <k.marinushkin@gmail.com>,
linux-kernel@vger.kernel.org
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>,
alsa-devel@alsa-project.org, Vinod Koul <vinod.koul@intel.com>,
Guneshwor Singh <guneshwor.o.singh@intel.com>,
Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Harsha Priya N <harshapriya.n@intel.com>,
Mark Brown <broonie@kernel.org>,
Naveen Manohar <naveen.m@intel.com>
Subject: Re: [PATCH] ASoC: Intel: Skylake: Fix compiler warning -Wmaybe-uninitialized
Date: Mon, 19 Feb 2018 15:35:23 +0900 [thread overview]
Message-ID: <f4eab116-caeb-0490-cea1-09452803f845@sakamocchi.jp> (raw)
In-Reply-To: <20180219060229.17215-1-k.marinushkin@gmail.com>
Hi,
On Feb 19 2018 15:02, Kirill Marinushkin wrote:
> Configuration:
>
> SND_SOC_INTEL_SKYLAKE=y
> PM_SLEEP=y
>
> Warning message:
>
> sound/soc/intel/skylake/skl.c: In function 'skl_resume':
> sound/soc/intel/skylake/skl.c:326:6: warning: 'ret' may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> int ret;
> ^~~
>
> Fixes: 4557c305d4fc ("ASoC: Intel: Skylake: Add support for active suspend")
> Signed-off-by: Kirill Marinushkin <k.marinushkin@gmail.com>
> Cc: Liam Girdwood <lgirdwood@gmail.com>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Jaroslav Kysela <perex@perex.cz>
> Cc: Takashi Iwai <tiwai@suse.com>
> Cc: Vinod Koul <vinod.koul@intel.com>
> Cc: Guneshwor Singh <guneshwor.o.singh@intel.com>
> Cc: Naveen Manohar <naveen.m@intel.com>
> Cc: Harsha Priya N <harshapriya.n@intel.com>
> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
> Cc: alsa-devel@alsa-project.org
> Cc: linux-kernel@vger.kernel.org
> ---
> sound/soc/intel/skylake/skl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
> index 31d8634e8aa1..273a9ab75489 100644
> --- a/sound/soc/intel/skylake/skl.c
> +++ b/sound/soc/intel/skylake/skl.c
> @@ -323,7 +323,7 @@ static int skl_resume(struct device *dev)
> struct skl *skl = ebus_to_skl(ebus);
> struct hdac_bus *bus = ebus_to_hbus(ebus);
> struct hdac_ext_link *hlink = NULL;
> - int ret;
> + int ret = 0;
>
> /* Turned OFF in HDMI codec driver after codec reconfiguration */
> if (IS_ENABLED(CONFIG_SND_SOC_HDAC_HDMI)) {
At current HEAD (ea954fbc35e6) in 'topic/intel' branch[1] of Mark's
tree, this issue was already fixed by Arnd Bergmann Nov 2017 by his
commit cc20c4df1627 ('ASoC: intel: initialize return value properly')[2].
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/log/?h=topic/intel
[2]
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/?h=topic/intel&id=cc20c4df1627
Regards
Takashi Sakamoto
prev parent reply other threads:[~2018-02-19 6:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-19 6:02 Kirill Marinushkin
2018-02-19 6:35 ` Takashi Sakamoto [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=f4eab116-caeb-0490-cea1-09452803f845@sakamocchi.jp \
--to=o-takashi@sakamocchi.jp \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=guneshwor.o.singh@intel.com \
--cc=harshapriya.n@intel.com \
--cc=k.marinushkin@gmail.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=naveen.m@intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=tiwai@suse.com \
--cc=vinod.koul@intel.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 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®