diff mbox

[net-next] net: hns: fix the unknown phy_nterface_t type error

Message ID 1444468838-59313-1-git-send-email-huangdaode@hisilicon.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

huangdaode Oct. 10, 2015, 9:20 a.m. UTC
This patch fix the building error reported by Jiri Pirko <jiri@resnulli.us>

drivers/net/ethernet/hisilicon/hns/hnae.h:465:2: error: unknown type
name 'phy_interface_t'
        phy_interface_t phy_if;
	^
the full build log is on https://lists.01.org/pipermail/kbuild-all.

Signed-off-by: huangdaode <huangdaode@hisilicon.com>
Signed-off-by: yankejian <yankejian@huawei.com>
---
 drivers/net/ethernet/hisilicon/hns/hnae.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Jiri Pirko Oct. 10, 2015, 9:14 a.m. UTC | #1
Sat, Oct 10, 2015 at 11:20:38AM CEST, huangdaode@hisilicon.com wrote:
>This patch fix the building error reported by Jiri Pirko <jiri@resnulli.us>
>
>drivers/net/ethernet/hisilicon/hns/hnae.h:465:2: error: unknown type
>name 'phy_interface_t'
>        phy_interface_t phy_if;
>	^
>the full build log is on https://lists.01.org/pipermail/kbuild-all.
>
>Signed-off-by: huangdaode <huangdaode@hisilicon.com>
>Signed-off-by: yankejian <yankejian@huawei.com>

Reviewed-by: Jiri Pirko <jiri@mellanox.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller Oct. 13, 2015, 2:46 a.m. UTC | #2
From: huangdaode <huangdaode@hisilicon.com>
Date: Sat, 10 Oct 2015 17:20:38 +0800

> This patch fix the building error reported by Jiri Pirko <jiri@resnulli.us>
> 
> drivers/net/ethernet/hisilicon/hns/hnae.h:465:2: error: unknown type
> name 'phy_interface_t'
>         phy_interface_t phy_if;
> 	^
> the full build log is on https://lists.01.org/pipermail/kbuild-all.
> 
> Signed-off-by: huangdaode <huangdaode@hisilicon.com>
> Signed-off-by: yankejian <yankejian@huawei.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.h b/drivers/net/ethernet/hisilicon/hns/hnae.h
index 5edd8cd..d4a1eb1 100644
--- a/drivers/net/ethernet/hisilicon/hns/hnae.h
+++ b/drivers/net/ethernet/hisilicon/hns/hnae.h
@@ -32,6 +32,7 @@ 
 #include <linux/module.h>
 #include <linux/netdevice.h>
 #include <linux/notifier.h>
+#include <linux/phy.h>
 #include <linux/types.h>
 
 #define HNAE_DRIVER_VERSION "1.3.0"