summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/seg6_genl.h
diff options
context:
space:
mode:
authorArnd Bergmann2016-11-08 14:31:38 +0100
committerDavid S. Miller2016-11-10 02:26:58 +0100
commitdc0b2c9cb47a2176e1f341bfdc770745d24e072c (patch)
tree12f2d9174981021fafa834aac5fe4176dfe4e3c7 /include/uapi/linux/seg6_genl.h
parentxen-netback: prefer xenbus_scanf() over xenbus_gather() (diff)
downloadkernel-qcow2-linux-dc0b2c9cb47a2176e1f341bfdc770745d24e072c.tar.gz
kernel-qcow2-linux-dc0b2c9cb47a2176e1f341bfdc770745d24e072c.tar.xz
kernel-qcow2-linux-dc0b2c9cb47a2176e1f341bfdc770745d24e072c.zip
net: mii: report 0 for unknown lp_advertising
The newly introduced mii_ethtool_get_link_ksettings function sets lp_advertising to an uninitialized value when BMCR_ANENABLE is not set: drivers/net/mii.c: In function 'mii_ethtool_get_link_ksettings': drivers/net/mii.c:224:2: error: 'lp_advertising' may be used uninitialized in this function [-Werror=maybe-uninitialized] As documented in include/uapi/linux/ethtool.h, the value is expected to be zero when we don't know it, so let's initialize it to that. Fixes: bc8ee596afe8 ("net: mii: add generic function to support ksetting support") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/seg6_genl.h')
0 files changed, 0 insertions, 0 deletions