[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <10feddc47ffc96ca5cd93651731b8adfdbe16c31.camel@coelho.fi>
Date: Tue, 22 Jan 2019 12:50:20 +0200
From: Luca Coelho <luca@...lho.fi>
To: Arnd Bergmann <arnd@...db.de>,
Johannes Berg <johannes.berg@...el.com>,
Emmanuel Grumbach <emmanuel.grumbach@...el.com>
Cc: Intel Linux Wireless <linuxwifi@...el.com>,
Kalle Valo <kvalo@...eaurora.org>,
"David S. Miller" <davem@...emloft.net>,
Sara Sharon <sara.sharon@...el.com>,
Shahar S Matityahu <shahar.s.matityahu@...el.com>,
Lior Cohen <lior2.cohen@...el.com>,
Shaul Triebitz <shaul.triebitz@...el.com>,
Haim Dreyfuss <haim.dreyfuss@...el.com>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iwlwifi: fix false-positive maybe-uninitialized warning
On Mon, 2018-12-10 at 21:39 +0100, Arnd Bergmann wrote:
> With CONFIG_NO_AUTO_INLINE, we run into a silly warning when
> gcc fails to remember that n_profiles is constant across
> the function call to iwl_mvm_sar_set_profile:
>
> drivers/net/wireless/intel/iwlwifi/mvm/fw.c: In function
> 'iwl_mvm_sar_get_ewrd_table':
> drivers/net/wireless/intel/iwlwifi/mvm/fw.c:746:9: error: 'ret' may
> be used uninitialized in this function [-Werror=maybe-uninitialized]
>
> Marking that function 'inline' avoids the warning.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
Thanks! This has been applied in our internal tree and will reach the
mainline following our normal upstreaming process.
--
Cheers,
Luca.
Powered by blists - more mailing lists