Messages in this thread | | | From | Arnd Bergmann <> | Date | Thu, 1 Feb 2018 12:48:59 +0100 | Subject | Re: [PATCH] inet: Avoid unitialized variable warning in inet_unhash() |
| |
On Thu, Feb 1, 2018 at 11:26 AM, Geert Uytterhoeven <geert@linux-m68k.org> wrote: > 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>
Looks like a reasonable workaround if we care about it. gcc-4.3 and higher don't seem to produce this warning, so I wouldn't normally care though.
Acked-by: Arnd Bergmann <arnd@arndb.de>
| |