• Ihar Hrachyshka's avatar
    arp: fixed -Wuninitialized compiler warning · 5990baaa
    Ihar Hrachyshka authored
    Commit 7d472a59 ("arp: always override
    existing neigh entries with gratuitous ARP") introduced a compiler
    warning:
    
    net/ipv4/arp.c:880:35: warning: 'addr_type' may be used uninitialized in
    this function [-Wmaybe-uninitialized]
    
    While the code logic seems to be correct and doesn't allow the variable
    to be used uninitialized, and the warning is not consistently
    reproducible, it's still worth fixing it for other people not to waste
    time looking at the warning in case it pops up in the build environment.
    Yes, compiler is probably at fault, but we will need to accommodate.
    
    Fixes: 7d472a59 ("arp: always override existing neigh entries with gratuitous ARP")
    Signed-off-by: default avatarIhar Hrachyshka <ihrachys@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5990baaa
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...