Message ID | E1cYdxI-0000Wk-5w@rmk-PC.armlinux.org.uk (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
On 01/31/2017 01:19 PM, Russell King wrote: > drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:58:12: error: dereferencing pointer to incomplete type 'struct phy_device' > > Add linux/phy.h to emac-sgmii.c > > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> > --- > drivers/net/ethernet/qualcomm/emac/emac-sgmii.c | 1 + The version of emac-sgmii.c on net-next does not need this fixed. I already removed all references to phy_device in commit "net: qcom/emac: always use autonegotiation to configure the SGMII link".
diff --git a/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c b/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c index bf722a9bb09d..5e31fb7e4ab8 100644 --- a/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c +++ b/drivers/net/ethernet/qualcomm/emac/emac-sgmii.c @@ -16,6 +16,7 @@ #include <linux/iopoll.h> #include <linux/acpi.h> #include <linux/of_device.h> +#include <linux/phy.h> #include "emac.h" #include "emac-mac.h" #include "emac-sgmii.h"
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c:58:12: error: dereferencing pointer to incomplete type 'struct phy_device' Add linux/phy.h to emac-sgmii.c Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> --- drivers/net/ethernet/qualcomm/emac/emac-sgmii.c | 1 + 1 file changed, 1 insertion(+)