From: patchwork-bot+netdevbpf@kernel•org
To: Michal Suchanek <msuchanek@suse•de>
Cc: netdev@vger•kernel.org, linux-kernel@vger•kernel.org,
kuba@kernel•org, ljp@linux•ibm.com, drt@linux•ibm.com,
paulus@samba•org, sukadev@linux•ibm.com,
linuxppc-dev@lists•ozlabs.org, davem@davemloft•net
Subject: Re: [PATCH] ibmvnic: Fix possibly uninitialized old_num_tx_queues variable warning.
Date: Wed, 03 Mar 2021 16:50:06 +0000 [thread overview]
Message-ID: <161479020676.31057.2292593478574354971.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20210302194747.21704-1-msuchanek@suse.de>
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Tue, 2 Mar 2021 20:47:47 +0100 you wrote:
> GCC 7.5 reports:
> ../drivers/net/ethernet/ibm/ibmvnic.c: In function 'ibmvnic_reset_init':
> ../drivers/net/ethernet/ibm/ibmvnic.c:5373:51: warning: 'old_num_tx_queues' may be used uninitialized in this function [-Wmaybe-uninitialized]
> ../drivers/net/ethernet/ibm/ibmvnic.c:5373:6: warning: 'old_num_rx_queues' may be used uninitialized in this function [-Wmaybe-uninitialized]
>
> The variable is initialized only if(reset) and used only if(reset &&
> something) so this is a false positive. However, there is no reason to
> not initialize the variables unconditionally avoiding the warning.
>
> [...]
Here is the summary with links:
- ibmvnic: Fix possibly uninitialized old_num_tx_queues variable warning.
https://git.kernel.org/netdev/net/c/6881b07fdd24
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2021-03-03 16:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-02 19:47 [PATCH] ibmvnic: Fix possibly uninitialized old_num_tx_queues variable warning Michal Suchanek
2021-03-02 20:55 ` Sukadev Bhattiprolu
2021-03-03 16:50 ` patchwork-bot+netdevbpf [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=161479020676.31057.2292593478574354971.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel$(echo .)org \
--cc=davem@davemloft$(echo .)net \
--cc=drt@linux$(echo .)ibm.com \
--cc=kuba@kernel$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=ljp@linux$(echo .)ibm.com \
--cc=msuchanek@suse$(echo .)de \
--cc=netdev@vger$(echo .)kernel.org \
--cc=paulus@samba$(echo .)org \
--cc=sukadev@linux$(echo .)ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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