net: hns: fix the unknown phy_nterface_t type error
authorhuangdaode <huangdaode@hisilicon.com>
Sat, 10 Oct 2015 09:20:38 +0000 (17:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 02:46:46 +0000 (19:46 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hnae.h

index 5edd8cdc248535996210f8050e32cfc06e271a9e..d4a1eb1b8e54c559dd51d12c9b347651a5d71029 100644 (file)
@@ -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"