lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 17 Jun 2019 16:24:38 -0700 (PDT) From: David Miller <davem@...emloft.net> To: arnd@...db.de Cc: peppe.cavallaro@...com, alexandre.torgue@...com, joabreu@...opsys.com, mcoquelin.stm32@...il.com, jpinto@...opsys.com, linux@...linux.org.uk, andrew@...n.ch, f.fainelli@...il.com, hkallweit1@...il.com, aaro.koskinen@...ia.com, netdev@...r.kernel.org, linux-stm32@...md-mailman.stormreply.com, linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH net-next] net: stmmac: fix unused-variable warning From: Arnd Bergmann <arnd@...db.de> Date: Mon, 17 Jun 2019 15:13:03 +0200 > When building without CONFIG_OF, we get a harmless build warning: > > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c: In function 'stmmac_phy_setup': > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:973:22: error: unused variable 'node' [-Werror=unused-variable] > struct device_node *node = priv->plat->phy_node; > > Reword it so we always use the local variable, by making it the > fwnode pointer instead of the device_node. > > Fixes: 74371272f97f ("net: stmmac: Convert to phylink and remove phylib logic") > Signed-off-by: Arnd Bergmann <arnd@...db.de> Applied.
Powered by blists - more mailing lists