diff options
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c | 8 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | 12 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_iov.c | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_main.c | 18 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 17 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/fm10k/fm10k_ptp.c | 5 |
7 files changed, 35 insertions, 37 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c b/drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c index 212a92dad222..5c7a4d7662d8 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Intel Ethernet Switch Host Interface Driver | 1 | /* Intel Ethernet Switch Host Interface Driver |
2 | * Copyright(c) 2013 - 2014 Intel Corporation. | 2 | * Copyright(c) 2013 - 2015 Intel Corporation. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -128,7 +128,7 @@ static int fm10k_dcbnl_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc) | |||
128 | * | 128 | * |
129 | * Returns that we support only IEEE DCB for this interface | 129 | * Returns that we support only IEEE DCB for this interface |
130 | **/ | 130 | **/ |
131 | static u8 fm10k_dcbnl_getdcbx(struct net_device *dev) | 131 | static u8 fm10k_dcbnl_getdcbx(struct net_device __always_unused *dev) |
132 | { | 132 | { |
133 | return DCB_CAP_DCBX_HOST | DCB_CAP_DCBX_VER_IEEE; | 133 | return DCB_CAP_DCBX_HOST | DCB_CAP_DCBX_VER_IEEE; |
134 | } | 134 | } |
@@ -140,7 +140,7 @@ static u8 fm10k_dcbnl_getdcbx(struct net_device *dev) | |||
140 | * | 140 | * |
141 | * Returns error on attempt to enable anything but IEEE DCB for this interface | 141 | * Returns error on attempt to enable anything but IEEE DCB for this interface |
142 | **/ | 142 | **/ |
143 | static u8 fm10k_dcbnl_setdcbx(struct net_device *dev, u8 mode) | 143 | static u8 fm10k_dcbnl_setdcbx(struct net_device __always_unused *dev, u8 mode) |
144 | { | 144 | { |
145 | return (mode != (DCB_CAP_DCBX_HOST | DCB_CAP_DCBX_VER_IEEE)) ? 1 : 0; | 145 | return (mode != (DCB_CAP_DCBX_HOST | DCB_CAP_DCBX_VER_IEEE)) ? 1 : 0; |
146 | } | 146 | } |
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c b/drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c index 4327f86218b9..f45b4d71adb8 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_debugfs.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Intel Ethernet Switch Host Interface Driver | 1 | /* Intel Ethernet Switch Host Interface Driver |
2 | * Copyright(c) 2013 - 2014 Intel Corporation. | 2 | * Copyright(c) 2013 - 2015 Intel Corporation. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -36,14 +36,16 @@ static void *fm10k_dbg_desc_seq_start(struct seq_file *s, loff_t *pos) | |||
36 | return (*pos < ring->count) ? pos : NULL; | 36 | return (*pos < ring->count) ? pos : NULL; |
37 | } | 37 | } |
38 | 38 | ||
39 | static void *fm10k_dbg_desc_seq_next(struct seq_file *s, void *v, loff_t *pos) | 39 | static void *fm10k_dbg_desc_seq_next(struct seq_file *s, |
40 | void __always_unused *v, loff_t *pos) | ||
40 | { | 41 | { |
41 | struct fm10k_ring *ring = s->private; | 42 | struct fm10k_ring *ring = s->private; |
42 | 43 | ||
43 | return (++(*pos) < ring->count) ? pos : NULL; | 44 | return (++(*pos) < ring->count) ? pos : NULL; |
44 | } | 45 | } |
45 | 46 | ||
46 | static void fm10k_dbg_desc_seq_stop(struct seq_file *s, void *v) | 47 | static void fm10k_dbg_desc_seq_stop(struct seq_file __always_unused *s, |
48 | __always_unused void *v) | ||
47 | { | 49 | { |
48 | /* Do nothing. */ | 50 | /* Do nothing. */ |
49 | } | 51 | } |
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c index 7dd3c9d5e476..697a269b2145 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c | |||
@@ -116,8 +116,7 @@ enum fm10k_self_test_types { | |||
116 | FM10K_TEST_MAX = FM10K_TEST_LEN | 116 | FM10K_TEST_MAX = FM10K_TEST_LEN |
117 | }; | 117 | }; |
118 | 118 | ||
119 | static void fm10k_get_strings(struct net_device *dev, u32 stringset, | 119 | static void fm10k_get_strings(struct net_device *dev, u32 stringset, u8 *data) |
120 | u8 *data) | ||
121 | { | 120 | { |
122 | char *p = (char *)data; | 121 | char *p = (char *)data; |
123 | int i; | 122 | int i; |
@@ -166,7 +165,8 @@ static int fm10k_get_sset_count(struct net_device *dev, int sset) | |||
166 | } | 165 | } |
167 | 166 | ||
168 | static void fm10k_get_ethtool_stats(struct net_device *netdev, | 167 | static void fm10k_get_ethtool_stats(struct net_device *netdev, |
169 | struct ethtool_stats *stats, u64 *data) | 168 | struct ethtool_stats __always_unused *stats, |
169 | u64 *data) | ||
170 | { | 170 | { |
171 | const int stat_count = sizeof(struct fm10k_queue_stats) / sizeof(u64); | 171 | const int stat_count = sizeof(struct fm10k_queue_stats) / sizeof(u64); |
172 | struct fm10k_intfc *interface = netdev_priv(netdev); | 172 | struct fm10k_intfc *interface = netdev_priv(netdev); |
@@ -644,7 +644,7 @@ static int fm10k_get_rss_hash_opts(struct fm10k_intfc *interface, | |||
644 | } | 644 | } |
645 | 645 | ||
646 | static int fm10k_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd, | 646 | static int fm10k_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd, |
647 | u32 *rule_locs) | 647 | u32 __always_unused *rule_locs) |
648 | { | 648 | { |
649 | struct fm10k_intfc *interface = netdev_priv(dev); | 649 | struct fm10k_intfc *interface = netdev_priv(dev); |
650 | int ret = -EOPNOTSUPP; | 650 | int ret = -EOPNOTSUPP; |
@@ -850,7 +850,7 @@ static void fm10k_self_test(struct net_device *dev, | |||
850 | eth_test->flags |= ETH_TEST_FL_FAILED; | 850 | eth_test->flags |= ETH_TEST_FL_FAILED; |
851 | } | 851 | } |
852 | 852 | ||
853 | static u32 fm10k_get_reta_size(struct net_device *netdev) | 853 | static u32 fm10k_get_reta_size(struct net_device __always_unused *netdev) |
854 | { | 854 | { |
855 | return FM10K_RETA_SIZE * FM10K_RETA_ENTRIES_PER_REG; | 855 | return FM10K_RETA_SIZE * FM10K_RETA_ENTRIES_PER_REG; |
856 | } | 856 | } |
@@ -910,7 +910,7 @@ static int fm10k_set_reta(struct net_device *netdev, const u32 *indir) | |||
910 | return 0; | 910 | return 0; |
911 | } | 911 | } |
912 | 912 | ||
913 | static u32 fm10k_get_rssrk_size(struct net_device *netdev) | 913 | static u32 fm10k_get_rssrk_size(struct net_device __always_unused *netdev) |
914 | { | 914 | { |
915 | return FM10K_RSSRK_SIZE * FM10K_RSSRK_ENTRIES_PER_REG; | 915 | return FM10K_RSSRK_SIZE * FM10K_RSSRK_ENTRIES_PER_REG; |
916 | } | 916 | } |
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_iov.c b/drivers/net/ethernet/intel/fm10k/fm10k_iov.c index a02308f5048f..69cbfde7fc09 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_iov.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_iov.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Intel Ethernet Switch Host Interface Driver | 1 | /* Intel Ethernet Switch Host Interface Driver |
2 | * Copyright(c) 2013 - 2014 Intel Corporation. | 2 | * Copyright(c) 2013 - 2015 Intel Corporation. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -488,8 +488,8 @@ int fm10k_ndo_set_vf_vlan(struct net_device *netdev, int vf_idx, u16 vid, | |||
488 | return 0; | 488 | return 0; |
489 | } | 489 | } |
490 | 490 | ||
491 | int fm10k_ndo_set_vf_bw(struct net_device *netdev, int vf_idx, int unused, | 491 | int fm10k_ndo_set_vf_bw(struct net_device *netdev, int vf_idx, |
492 | int rate) | 492 | int __always_unused unused, int rate) |
493 | { | 493 | { |
494 | struct fm10k_intfc *interface = netdev_priv(netdev); | 494 | struct fm10k_intfc *interface = netdev_priv(netdev); |
495 | struct fm10k_iov_data *iov_data = interface->iov_data; | 495 | struct fm10k_iov_data *iov_data = interface->iov_data; |
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_main.c b/drivers/net/ethernet/intel/fm10k/fm10k_main.c index c325bc0c8338..e2c27ba11470 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_main.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_main.c | |||
@@ -209,7 +209,7 @@ static inline bool fm10k_page_is_reserved(struct page *page) | |||
209 | 209 | ||
210 | static bool fm10k_can_reuse_rx_page(struct fm10k_rx_buffer *rx_buffer, | 210 | static bool fm10k_can_reuse_rx_page(struct fm10k_rx_buffer *rx_buffer, |
211 | struct page *page, | 211 | struct page *page, |
212 | unsigned int truesize) | 212 | unsigned int __maybe_unused truesize) |
213 | { | 213 | { |
214 | /* avoid re-using remote pages */ | 214 | /* avoid re-using remote pages */ |
215 | if (unlikely(fm10k_page_is_reserved(page))) | 215 | if (unlikely(fm10k_page_is_reserved(page))) |
@@ -240,7 +240,6 @@ static bool fm10k_can_reuse_rx_page(struct fm10k_rx_buffer *rx_buffer, | |||
240 | 240 | ||
241 | /** | 241 | /** |
242 | * fm10k_add_rx_frag - Add contents of Rx buffer to sk_buff | 242 | * fm10k_add_rx_frag - Add contents of Rx buffer to sk_buff |
243 | * @rx_ring: rx descriptor ring to transact packets on | ||
244 | * @rx_buffer: buffer containing page to add | 243 | * @rx_buffer: buffer containing page to add |
245 | * @rx_desc: descriptor containing length of buffer written by hardware | 244 | * @rx_desc: descriptor containing length of buffer written by hardware |
246 | * @skb: sk_buff to place the data into | 245 | * @skb: sk_buff to place the data into |
@@ -253,8 +252,7 @@ static bool fm10k_can_reuse_rx_page(struct fm10k_rx_buffer *rx_buffer, | |||
253 | * The function will then update the page offset if necessary and return | 252 | * The function will then update the page offset if necessary and return |
254 | * true if the buffer can be reused by the interface. | 253 | * true if the buffer can be reused by the interface. |
255 | **/ | 254 | **/ |
256 | static bool fm10k_add_rx_frag(struct fm10k_ring *rx_ring, | 255 | static bool fm10k_add_rx_frag(struct fm10k_rx_buffer *rx_buffer, |
257 | struct fm10k_rx_buffer *rx_buffer, | ||
258 | union fm10k_rx_desc *rx_desc, | 256 | union fm10k_rx_desc *rx_desc, |
259 | struct sk_buff *skb) | 257 | struct sk_buff *skb) |
260 | { | 258 | { |
@@ -330,7 +328,7 @@ static struct sk_buff *fm10k_fetch_rx_buffer(struct fm10k_ring *rx_ring, | |||
330 | DMA_FROM_DEVICE); | 328 | DMA_FROM_DEVICE); |
331 | 329 | ||
332 | /* pull page into skb */ | 330 | /* pull page into skb */ |
333 | if (fm10k_add_rx_frag(rx_ring, rx_buffer, rx_desc, skb)) { | 331 | if (fm10k_add_rx_frag(rx_buffer, rx_desc, skb)) { |
334 | /* hand second half of page back to the ring */ | 332 | /* hand second half of page back to the ring */ |
335 | fm10k_reuse_rx_page(rx_ring, rx_buffer); | 333 | fm10k_reuse_rx_page(rx_ring, rx_buffer); |
336 | } else { | 334 | } else { |
@@ -412,7 +410,7 @@ static void fm10k_rx_hwtstamp(struct fm10k_ring *rx_ring, | |||
412 | } | 410 | } |
413 | 411 | ||
414 | static void fm10k_type_trans(struct fm10k_ring *rx_ring, | 412 | static void fm10k_type_trans(struct fm10k_ring *rx_ring, |
415 | union fm10k_rx_desc *rx_desc, | 413 | union fm10k_rx_desc __maybe_unused *rx_desc, |
416 | struct sk_buff *skb) | 414 | struct sk_buff *skb) |
417 | { | 415 | { |
418 | struct net_device *dev = rx_ring->netdev; | 416 | struct net_device *dev = rx_ring->netdev; |
@@ -509,8 +507,6 @@ static bool fm10k_is_non_eop(struct fm10k_ring *rx_ring, | |||
509 | 507 | ||
510 | /** | 508 | /** |
511 | * fm10k_pull_tail - fm10k specific version of skb_pull_tail | 509 | * fm10k_pull_tail - fm10k specific version of skb_pull_tail |
512 | * @rx_ring: rx descriptor ring packet is being transacted on | ||
513 | * @rx_desc: pointer to the EOP Rx descriptor | ||
514 | * @skb: pointer to current skb being adjusted | 510 | * @skb: pointer to current skb being adjusted |
515 | * | 511 | * |
516 | * This function is an fm10k specific version of __pskb_pull_tail. The | 512 | * This function is an fm10k specific version of __pskb_pull_tail. The |
@@ -520,9 +516,7 @@ static bool fm10k_is_non_eop(struct fm10k_ring *rx_ring, | |||
520 | * As a result we can do things like drop a frag and maintain an accurate | 516 | * As a result we can do things like drop a frag and maintain an accurate |
521 | * truesize for the skb. | 517 | * truesize for the skb. |
522 | */ | 518 | */ |
523 | static void fm10k_pull_tail(struct fm10k_ring *rx_ring, | 519 | static void fm10k_pull_tail(struct sk_buff *skb) |
524 | union fm10k_rx_desc *rx_desc, | ||
525 | struct sk_buff *skb) | ||
526 | { | 520 | { |
527 | struct skb_frag_struct *frag = &skb_shinfo(skb)->frags[0]; | 521 | struct skb_frag_struct *frag = &skb_shinfo(skb)->frags[0]; |
528 | unsigned char *va; | 522 | unsigned char *va; |
@@ -576,7 +570,7 @@ static bool fm10k_cleanup_headers(struct fm10k_ring *rx_ring, | |||
576 | 570 | ||
577 | /* place header in linear portion of buffer */ | 571 | /* place header in linear portion of buffer */ |
578 | if (skb_is_nonlinear(skb)) | 572 | if (skb_is_nonlinear(skb)) |
579 | fm10k_pull_tail(rx_ring, rx_desc, skb); | 573 | fm10k_pull_tail(skb); |
580 | 574 | ||
581 | /* if eth_skb_pad returns an error the skb was freed */ | 575 | /* if eth_skb_pad returns an error the skb was freed */ |
582 | if (eth_skb_pad(skb)) | 576 | if (eth_skb_pad(skb)) |
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c index 90d6faefb8bd..9d9dce6b7d5f 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c | |||
@@ -807,7 +807,7 @@ static void fm10k_napi_enable_all(struct fm10k_intfc *interface) | |||
807 | } | 807 | } |
808 | } | 808 | } |
809 | 809 | ||
810 | static irqreturn_t fm10k_msix_clean_rings(int irq, void *data) | 810 | static irqreturn_t fm10k_msix_clean_rings(int __always_unused irq, void *data) |
811 | { | 811 | { |
812 | struct fm10k_q_vector *q_vector = data; | 812 | struct fm10k_q_vector *q_vector = data; |
813 | 813 | ||
@@ -817,7 +817,7 @@ static irqreturn_t fm10k_msix_clean_rings(int irq, void *data) | |||
817 | return IRQ_HANDLED; | 817 | return IRQ_HANDLED; |
818 | } | 818 | } |
819 | 819 | ||
820 | static irqreturn_t fm10k_msix_mbx_vf(int irq, void *data) | 820 | static irqreturn_t fm10k_msix_mbx_vf(int __always_unused irq, void *data) |
821 | { | 821 | { |
822 | struct fm10k_intfc *interface = data; | 822 | struct fm10k_intfc *interface = data; |
823 | struct fm10k_hw *hw = &interface->hw; | 823 | struct fm10k_hw *hw = &interface->hw; |
@@ -985,7 +985,7 @@ static void fm10k_reset_drop_on_empty(struct fm10k_intfc *interface, u32 eicr) | |||
985 | } | 985 | } |
986 | } | 986 | } |
987 | 987 | ||
988 | static irqreturn_t fm10k_msix_mbx_pf(int irq, void *data) | 988 | static irqreturn_t fm10k_msix_mbx_pf(int __always_unused irq, void *data) |
989 | { | 989 | { |
990 | struct fm10k_intfc *interface = data; | 990 | struct fm10k_intfc *interface = data; |
991 | struct fm10k_hw *hw = &interface->hw; | 991 | struct fm10k_hw *hw = &interface->hw; |
@@ -1090,7 +1090,7 @@ static s32 fm10k_mbx_mac_addr(struct fm10k_hw *hw, u32 **results, | |||
1090 | } | 1090 | } |
1091 | 1091 | ||
1092 | static s32 fm10k_1588_msg_vf(struct fm10k_hw *hw, u32 **results, | 1092 | static s32 fm10k_1588_msg_vf(struct fm10k_hw *hw, u32 **results, |
1093 | struct fm10k_mbx_info *mbx) | 1093 | struct fm10k_mbx_info __always_unused *mbx) |
1094 | { | 1094 | { |
1095 | struct fm10k_intfc *interface; | 1095 | struct fm10k_intfc *interface; |
1096 | u64 timestamp; | 1096 | u64 timestamp; |
@@ -1110,7 +1110,7 @@ static s32 fm10k_1588_msg_vf(struct fm10k_hw *hw, u32 **results, | |||
1110 | 1110 | ||
1111 | /* generic error handler for mailbox issues */ | 1111 | /* generic error handler for mailbox issues */ |
1112 | static s32 fm10k_mbx_error(struct fm10k_hw *hw, u32 **results, | 1112 | static s32 fm10k_mbx_error(struct fm10k_hw *hw, u32 **results, |
1113 | struct fm10k_mbx_info *mbx) | 1113 | struct fm10k_mbx_info __always_unused *mbx) |
1114 | { | 1114 | { |
1115 | struct fm10k_intfc *interface; | 1115 | struct fm10k_intfc *interface; |
1116 | struct pci_dev *pdev; | 1116 | struct pci_dev *pdev; |
@@ -1186,7 +1186,7 @@ static s32 fm10k_lport_map(struct fm10k_hw *hw, u32 **results, | |||
1186 | } | 1186 | } |
1187 | 1187 | ||
1188 | static s32 fm10k_update_pvid(struct fm10k_hw *hw, u32 **results, | 1188 | static s32 fm10k_update_pvid(struct fm10k_hw *hw, u32 **results, |
1189 | struct fm10k_mbx_info *mbx) | 1189 | struct fm10k_mbx_info __always_unused *mbx) |
1190 | { | 1190 | { |
1191 | struct fm10k_intfc *interface; | 1191 | struct fm10k_intfc *interface; |
1192 | u16 glort, pvid; | 1192 | u16 glort, pvid; |
@@ -1227,7 +1227,7 @@ static s32 fm10k_update_pvid(struct fm10k_hw *hw, u32 **results, | |||
1227 | } | 1227 | } |
1228 | 1228 | ||
1229 | static s32 fm10k_1588_msg_pf(struct fm10k_hw *hw, u32 **results, | 1229 | static s32 fm10k_1588_msg_pf(struct fm10k_hw *hw, u32 **results, |
1230 | struct fm10k_mbx_info *mbx) | 1230 | struct fm10k_mbx_info __always_unused *mbx) |
1231 | { | 1231 | { |
1232 | struct fm10k_swapi_1588_timestamp timestamp; | 1232 | struct fm10k_swapi_1588_timestamp timestamp; |
1233 | struct fm10k_iov_data *iov_data; | 1233 | struct fm10k_iov_data *iov_data; |
@@ -2005,7 +2005,8 @@ static int fm10k_resume(struct pci_dev *pdev) | |||
2005 | * a sleep state. The fm10k hardware does not support wake on lan so the | 2005 | * a sleep state. The fm10k hardware does not support wake on lan so the |
2006 | * driver simply needs to shut down the device so it is in a low power state. | 2006 | * driver simply needs to shut down the device so it is in a low power state. |
2007 | **/ | 2007 | **/ |
2008 | static int fm10k_suspend(struct pci_dev *pdev, pm_message_t state) | 2008 | static int fm10k_suspend(struct pci_dev *pdev, |
2009 | pm_message_t __always_unused state) | ||
2009 | { | 2010 | { |
2010 | struct fm10k_intfc *interface = pci_get_drvdata(pdev); | 2011 | struct fm10k_intfc *interface = pci_get_drvdata(pdev); |
2011 | struct net_device *netdev = interface->netdev; | 2012 | struct net_device *netdev = interface->netdev; |
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_ptp.c b/drivers/net/ethernet/intel/fm10k/fm10k_ptp.c index 02008e976d18..9043633c3e50 100644 --- a/drivers/net/ethernet/intel/fm10k/fm10k_ptp.c +++ b/drivers/net/ethernet/intel/fm10k/fm10k_ptp.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Intel Ethernet Switch Host Interface Driver | 1 | /* Intel Ethernet Switch Host Interface Driver |
2 | * Copyright(c) 2013 - 2014 Intel Corporation. | 2 | * Copyright(c) 2013 - 2015 Intel Corporation. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -319,7 +319,8 @@ static int fm10k_ptp_settime(struct ptp_clock_info *ptp, | |||
319 | } | 319 | } |
320 | 320 | ||
321 | static int fm10k_ptp_enable(struct ptp_clock_info *ptp, | 321 | static int fm10k_ptp_enable(struct ptp_clock_info *ptp, |
322 | struct ptp_clock_request *rq, int on) | 322 | struct ptp_clock_request *rq, |
323 | int __always_unused on) | ||
323 | { | 324 | { |
324 | struct ptp_clock_time *t = &rq->perout.period; | 325 | struct ptp_clock_time *t = &rq->perout.period; |
325 | struct fm10k_intfc *interface; | 326 | struct fm10k_intfc *interface; |