From: David Miller <davem@davemloft.net>
To: geert@linux-m68k.org
Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, arnd@arndb.de,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] inet: Avoid unitialized variable warning in inet_unhash()
Date: Thu, 01 Feb 2018 09:49:09 -0500 (EST) [thread overview]
Message-ID: <20180201.094909.1943860277381269232.davem@davemloft.net> (raw)
In-Reply-To: <1517480783-5692-1-git-send-email-geert@linux-m68k.org>
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Thu, 1 Feb 2018 11:26:23 +0100
> With gcc-4.1.2:
>
> net/ipv4/inet_hashtables.c: In function ‘inet_unhash’:
> net/ipv4/inet_hashtables.c:628: warning: ‘ilb’ may be used uninitialized in this function
>
> While this is a false positive, it can easily be avoided by using the
> pointer itself as the canary variable.
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This frankly also makes the logic simpler and doesn't increase register
pressure, I like it.
Applied, thanks.
prev parent reply other threads:[~2018-02-01 14:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-01 10:26 [PATCH] inet: Avoid unitialized variable warning in inet_unhash() Geert Uytterhoeven
2018-02-01 11:48 ` Arnd Bergmann
2018-02-01 14:49 ` David Miller [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=20180201.094909.1943860277381269232.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=arnd@arndb.de \
--cc=geert@linux-m68k.org \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.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;
as well as URLs for NNTP newsgroup(s).