]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ixgbe/ixgbe_common.h
sfc: Read MC firmware version when requested through ethtool
[~andy/linux] / drivers / net / ixgbe / ixgbe_common.h
index 66ed045a8cf008e2d2ba48fefb9d8ba4f3d0f35b..90cceb4a6317085195a51c5347ec5b9266897644 100644 (file)
@@ -29,6 +29,7 @@
 #define _IXGBE_COMMON_H_
 
 #include "ixgbe_type.h"
+#include "ixgbe.h"
 
 u32 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw);
 s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw);
@@ -110,9 +111,8 @@ void ixgbe_set_vlan_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf);
 
 #define IXGBE_WRITE_FLUSH(a) IXGBE_READ_REG(a, IXGBE_STATUS)
 
-extern struct net_device *ixgbe_get_hw_dev(struct ixgbe_hw *hw);
 #define hw_dbg(hw, format, arg...) \
-       netdev_dbg(ixgbe_get_hw_dev(hw), format, ##arg)
+       netdev_dbg(((struct ixgbe_adapter *)(hw->back))->netdev, format, ##arg)
 #define e_dev_info(format, arg...) \
        dev_info(&adapter->pdev->dev, format, ## arg)
 #define e_dev_warn(format, arg...) \