The mvneta itself does not support WOL, but the PHY might.
So pass the calls to the PHY
Signed-off-by: Jingju Hou <redacted>
---
Since v1:
- using phy_dev member in struct net_device
drivers/net/ethernet/marvell/mvneta.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
On Mon, 23 Jan 2017 10:44:07 +0800
Jingju Hou [off-list ref] wrote:
The mvneta itself does not support WOL, but the PHY might.
So pass the calls to the PHY
Signed-off-by: Jingju Hou <redacted>
Reviewed-by: Jisheng Zhang <redacted>
quoted hunk
---
Since v1:
- using phy_dev member in struct net_device
drivers/net/ethernet/marvell/mvneta.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
drivers/net/ethernet/marvell/mvneta.c:3938:9: error: 'struct net_device' has no member named 'phy_dev'; did you mean 'phydev'?
if (dev->phy_dev)
^~
drivers/net/ethernet/marvell/mvneta.c:3939:33: error: 'struct net_device' has no member named 'phy_dev'; did you mean 'phydev'?
return phy_ethtool_get_wol(dev->phy_dev, wol);
^~
drivers/net/ethernet/marvell/mvneta.c:3939:10: warning: 'return' with a value, in function returning void
return phy_ethtool_get_wol(dev->phy_dev, wol);
^~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/marvell/mvneta.c:3933:1: note: declared here
mvneta_ethtool_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/marvell/mvneta.c: In function 'mvneta_ethtool_set_wol':
drivers/net/ethernet/marvell/mvneta.c:3945:10: error: 'struct net_device' has no member named 'phy_dev'; did you mean 'phydev'?
if (!dev->phy_dev)
^~
drivers/net/ethernet/marvell/mvneta.c:3948:32: error: 'struct net_device' has no member named 'phy_dev'; did you mean 'phydev'?
return phy_ethtool_set_wol(dev->phy_dev, wol);
^~
drivers/net/ethernet/marvell/mvneta.c:3949:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +3938 drivers/net/ethernet/marvell/mvneta.c
3932 static void
3933 mvneta_ethtool_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
3934 {
3935 wol->supported = 0;
3936 wol->wolopts = 0;
3937
3938 if (dev->phy_dev)
3939 return phy_ethtool_get_wol(dev->phy_dev, wol);
3940 }
3941
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
drivers/net/ethernet/marvell/mvneta.c:3938:9: error: 'struct net_device' has no member named 'phy_dev'
if (dev->phy_dev)
^
drivers/net/ethernet/marvell/mvneta.c:3939:33: error: 'struct net_device' has no member named 'phy_dev'
return phy_ethtool_get_wol(dev->phy_dev, wol);
^
drivers/net/ethernet/marvell/mvneta.c:3939:3: warning: 'return' with a value, in function returning void
return phy_ethtool_get_wol(dev->phy_dev, wol);
^
drivers/net/ethernet/marvell/mvneta.c: In function 'mvneta_ethtool_set_wol':
drivers/net/ethernet/marvell/mvneta.c:3945:10: error: 'struct net_device' has no member named 'phy_dev'
if (!dev->phy_dev)
^
drivers/net/ethernet/marvell/mvneta.c:3948:32: error: 'struct net_device' has no member named 'phy_dev'
return phy_ethtool_set_wol(dev->phy_dev, wol);
^
drivers/net/ethernet/marvell/mvneta.c:3949:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +3938 drivers/net/ethernet/marvell/mvneta.c
3932 static void
3933 mvneta_ethtool_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
3934 {
3935 wol->supported = 0;
3936 wol->wolopts = 0;
3937
3938 if (dev->phy_dev)
3939 return phy_ethtool_get_wol(dev->phy_dev, wol);
3940 }
3941
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
From: David Miller <davem@davemloft.net> Date: 2017-01-23 04:27:54
The same build error exists in all submissions of your patch.
At this point you must absolutely reproduce this build failure
yourself, and stop submitting this patch until you can test that the
build failure is fixed.