diff options
author | Carolyn Wyborny <carolyn.wyborny@intel.com> | 2014-04-10 21:46:33 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-04-24 20:26:30 -0400 |
commit | c502ea2ea82587ad4b152dab5521869789b8ad6c (patch) | |
tree | 641e6223be19284255af6dc0b85b78e09d294504 /drivers/net/ethernet | |
parent | da1f1dfeb36550c5725ab62fcb8dca1c48ff34ba (diff) |
igb: Cleanups to fix line length warnings
This patch fixes WARNING:LONG_LINE found with checkpatch check.
Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_ethtool.c | 13 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb_main.c | 8 |
2 files changed, 13 insertions, 8 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index 561df67ae595..b83694b3f7e6 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c | |||
@@ -1129,8 +1129,10 @@ static struct igb_reg_test reg_test_82576[] = { | |||
1129 | { E1000_RDBAH(4), 0x40, 12, PATTERN_TEST, 0xFFFFFFFF, 0xFFFFFFFF }, | 1129 | { E1000_RDBAH(4), 0x40, 12, PATTERN_TEST, 0xFFFFFFFF, 0xFFFFFFFF }, |
1130 | { E1000_RDLEN(4), 0x40, 12, PATTERN_TEST, 0x000FFFF0, 0x000FFFFF }, | 1130 | { E1000_RDLEN(4), 0x40, 12, PATTERN_TEST, 0x000FFFF0, 0x000FFFFF }, |
1131 | /* Enable all RX queues before testing. */ | 1131 | /* Enable all RX queues before testing. */ |
1132 | { E1000_RXDCTL(0), 0x100, 4, WRITE_NO_TEST, 0, E1000_RXDCTL_QUEUE_ENABLE }, | 1132 | { E1000_RXDCTL(0), 0x100, 4, WRITE_NO_TEST, 0, |
1133 | { E1000_RXDCTL(4), 0x40, 12, WRITE_NO_TEST, 0, E1000_RXDCTL_QUEUE_ENABLE }, | 1133 | E1000_RXDCTL_QUEUE_ENABLE }, |
1134 | { E1000_RXDCTL(4), 0x40, 12, WRITE_NO_TEST, 0, | ||
1135 | E1000_RXDCTL_QUEUE_ENABLE }, | ||
1134 | /* RDH is read-only for 82576, only test RDT. */ | 1136 | /* RDH is read-only for 82576, only test RDT. */ |
1135 | { E1000_RDT(0), 0x100, 4, PATTERN_TEST, 0x0000FFFF, 0x0000FFFF }, | 1137 | { E1000_RDT(0), 0x100, 4, PATTERN_TEST, 0x0000FFFF, 0x0000FFFF }, |
1136 | { E1000_RDT(4), 0x40, 12, PATTERN_TEST, 0x0000FFFF, 0x0000FFFF }, | 1138 | { E1000_RDT(4), 0x40, 12, PATTERN_TEST, 0x0000FFFF, 0x0000FFFF }, |
@@ -1167,7 +1169,8 @@ static struct igb_reg_test reg_test_82575[] = { | |||
1167 | { E1000_RDBAH(0), 0x100, 4, PATTERN_TEST, 0xFFFFFFFF, 0xFFFFFFFF }, | 1169 | { E1000_RDBAH(0), 0x100, 4, PATTERN_TEST, 0xFFFFFFFF, 0xFFFFFFFF }, |
1168 | { E1000_RDLEN(0), 0x100, 4, PATTERN_TEST, 0x000FFF80, 0x000FFFFF }, | 1170 | { E1000_RDLEN(0), 0x100, 4, PATTERN_TEST, 0x000FFF80, 0x000FFFFF }, |
1169 | /* Enable all four RX queues before testing. */ | 1171 | /* Enable all four RX queues before testing. */ |
1170 | { E1000_RXDCTL(0), 0x100, 4, WRITE_NO_TEST, 0, E1000_RXDCTL_QUEUE_ENABLE }, | 1172 | { E1000_RXDCTL(0), 0x100, 4, WRITE_NO_TEST, 0, |
1173 | E1000_RXDCTL_QUEUE_ENABLE }, | ||
1171 | /* RDH is read-only for 82575, only test RDT. */ | 1174 | /* RDH is read-only for 82575, only test RDT. */ |
1172 | { E1000_RDT(0), 0x100, 4, PATTERN_TEST, 0x0000FFFF, 0x0000FFFF }, | 1175 | { E1000_RDT(0), 0x100, 4, PATTERN_TEST, 0x0000FFFF, 0x0000FFFF }, |
1173 | { E1000_RXDCTL(0), 0x100, 4, WRITE_NO_TEST, 0, 0 }, | 1176 | { E1000_RXDCTL(0), 0x100, 4, WRITE_NO_TEST, 0, 0 }, |
@@ -1220,8 +1223,8 @@ static bool reg_set_and_check(struct igb_adapter *adapter, u64 *data, | |||
1220 | val = rd32(reg); | 1223 | val = rd32(reg); |
1221 | if ((write & mask) != (val & mask)) { | 1224 | if ((write & mask) != (val & mask)) { |
1222 | dev_err(&adapter->pdev->dev, | 1225 | dev_err(&adapter->pdev->dev, |
1223 | "set/check reg %04X test failed: got 0x%08X expected 0x%08X\n", reg, | 1226 | "set/check reg %04X test failed: got 0x%08X expected 0x%08X\n", |
1224 | (val & mask), (write & mask)); | 1227 | reg, (val & mask), (write & mask)); |
1225 | *data = reg; | 1228 | *data = reg; |
1226 | return 1; | 1229 | return 1; |
1227 | } | 1230 | } |
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index a339a634afb2..93cac382857b 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c | |||
@@ -138,7 +138,7 @@ static void igb_watchdog(unsigned long); | |||
138 | static void igb_watchdog_task(struct work_struct *); | 138 | static void igb_watchdog_task(struct work_struct *); |
139 | static netdev_tx_t igb_xmit_frame(struct sk_buff *skb, struct net_device *); | 139 | static netdev_tx_t igb_xmit_frame(struct sk_buff *skb, struct net_device *); |
140 | static struct rtnl_link_stats64 *igb_get_stats64(struct net_device *dev, | 140 | static struct rtnl_link_stats64 *igb_get_stats64(struct net_device *dev, |
141 | struct rtnl_link_stats64 *stats); | 141 | struct rtnl_link_stats64 *stats); |
142 | static int igb_change_mtu(struct net_device *, int); | 142 | static int igb_change_mtu(struct net_device *, int); |
143 | static int igb_set_mac(struct net_device *, void *); | 143 | static int igb_set_mac(struct net_device *, void *); |
144 | static void igb_set_uta(struct igb_adapter *adapter); | 144 | static void igb_set_uta(struct igb_adapter *adapter); |
@@ -156,7 +156,8 @@ static bool igb_clean_rx_irq(struct igb_q_vector *, int); | |||
156 | static int igb_ioctl(struct net_device *, struct ifreq *, int cmd); | 156 | static int igb_ioctl(struct net_device *, struct ifreq *, int cmd); |
157 | static void igb_tx_timeout(struct net_device *); | 157 | static void igb_tx_timeout(struct net_device *); |
158 | static void igb_reset_task(struct work_struct *); | 158 | static void igb_reset_task(struct work_struct *); |
159 | static void igb_vlan_mode(struct net_device *netdev, netdev_features_t features); | 159 | static void igb_vlan_mode(struct net_device *netdev, |
160 | netdev_features_t features); | ||
160 | static int igb_vlan_rx_add_vid(struct net_device *, __be16, u16); | 161 | static int igb_vlan_rx_add_vid(struct net_device *, __be16, u16); |
161 | static int igb_vlan_rx_kill_vid(struct net_device *, __be16, u16); | 162 | static int igb_vlan_rx_kill_vid(struct net_device *, __be16, u16); |
162 | static void igb_restore_vlan(struct igb_adapter *); | 163 | static void igb_restore_vlan(struct igb_adapter *); |
@@ -3388,7 +3389,8 @@ static void igb_setup_mrqc(struct igb_adapter *adapter) | |||
3388 | 3389 | ||
3389 | if (adapter->rss_indir_tbl_init != num_rx_queues) { | 3390 | if (adapter->rss_indir_tbl_init != num_rx_queues) { |
3390 | for (j = 0; j < IGB_RETA_SIZE; j++) | 3391 | for (j = 0; j < IGB_RETA_SIZE; j++) |
3391 | adapter->rss_indir_tbl[j] = (j * num_rx_queues) / IGB_RETA_SIZE; | 3392 | adapter->rss_indir_tbl[j] = |
3393 | (j * num_rx_queues) / IGB_RETA_SIZE; | ||
3392 | adapter->rss_indir_tbl_init = num_rx_queues; | 3394 | adapter->rss_indir_tbl_init = num_rx_queues; |
3393 | } | 3395 | } |
3394 | igb_write_rss_indir_tbl(adapter); | 3396 | igb_write_rss_indir_tbl(adapter); |