aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-01-21 11:12:10 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 17:53:11 -0400
commita7c0ea6e954635c7c9c60a197320e2fd72a42078 (patch)
treef0e095b5f004d32b9618f7bbbd4fb3d4e2b0ec7a
parent0d41472746cec1f4d8e5c0ca12f4b1cd3819ea40 (diff)
Staging: sxg: fix build warnings in sxg_ethtool
This fixes some build problems with the ethtool support recently added for the sxg driver. This is a very good example of why you need to check the build for warnings and then fix them... Cc: Mithlesh Thukral <mithlesh@linsyssoft.com> Cc: LinSysSoft Sahara Team <saharaproj@linsyssoft.com> Cc: Christopher Harrer <charrer@alacritech.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/sxg/sxg_ethtool.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/staging/sxg/sxg_ethtool.c b/drivers/staging/sxg/sxg_ethtool.c
index a0632072a55..000c4d66e6f 100644
--- a/drivers/staging/sxg/sxg_ethtool.c
+++ b/drivers/staging/sxg/sxg_ethtool.c
@@ -161,14 +161,14 @@ static int sxg_nic_set_settings(struct net_device *netdev,
161 return -EOPNOTSUPP; 161 return -EOPNOTSUPP;
162} 162}
163 163
164static int 164static void
165sxg_nic_get_strings(struct net_device *netdev, u32 stringset, u8 * data) 165sxg_nic_get_strings(struct net_device *netdev, u32 stringset, u8 * data)
166{ 166{
167 int index; 167 int index;
168 168
169 switch(stringset) { 169 switch(stringset) {
170 case ETH_SS_TEST: 170 case ETH_SS_TEST:
171 return -EOPNOTSUPP; 171 /* return -EOPNOTSUPP; */
172 break; 172 break;
173 case ETH_SS_STATS: 173 case ETH_SS_STATS:
174 for (index = 0; index < SXG_NIC_STATS_LEN; index++) { 174 for (index = 0; index < SXG_NIC_STATS_LEN; index++) {
@@ -228,7 +228,7 @@ static int sxg_nic_get_settings(struct net_device *netdev,
228 return 0; 228 return 0;
229} 229}
230 230
231static int sxg_nic_get_rx_csum(struct net_device *netdev) 231static u32 sxg_nic_get_rx_csum(struct net_device *netdev)
232{ 232{
233 struct adapter_t *adapter = netdev_priv(netdev); 233 struct adapter_t *adapter = netdev_priv(netdev);
234 return ((adapter->flags & SXG_RCV_IP_CSUM_ENABLED) || 234 return ((adapter->flags & SXG_RCV_IP_CSUM_ENABLED) ||
@@ -266,11 +266,12 @@ static void sxg_nic_get_regs(struct net_device *netdev,
266 memcpy((buff+sizeof(struct sxg_hw_regs)), UcodeRegs, sizeof(struct sxg_ucode_regs)); 266 memcpy((buff+sizeof(struct sxg_hw_regs)), UcodeRegs, sizeof(struct sxg_ucode_regs));
267} 267}
268 268
269static int sxg_nic_get_wol(struct net_device *netdev, 269static void sxg_nic_get_wol(struct net_device *netdev,
270 struct ethtool_wolinfo *wol) 270 struct ethtool_wolinfo *wol)
271{ 271{
272 /* We dont support wake-on-lan */ 272 /* We dont support wake-on-lan */
273 return -EOPNOTSUPP; 273 wol->supported = 0;
274 memset(&wol->sopass, 0, sizeof(wol->sopass));
274} 275}
275 276
276static int sxg_nic_get_eeprom_len(struct net_device *netdev) 277static int sxg_nic_get_eeprom_len(struct net_device *netdev)