aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 13:15:13 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-24 13:15:13 -0400
commita319a2773a13bab56a0d0b3744ba8703324313b5 (patch)
treef02c86acabd1031439fd422a167784007e84ebb1 /net/core
parente18fa700c9a31360bc8f193aa543b7ef7b39a06b (diff)
parent183798799216fad36c7219fe8d4d6dee6b8fa755 (diff)
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (217 commits) net/ieee80211: fix more crypto-related build breakage [PATCH] Spidernet: add ethtool -S (show statistics) [NET] GT96100: Delete bitrotting ethernet driver [PATCH] mv643xx_eth: restrict to 32-bit PPC_MULTIPLATFORM [PATCH] Cirrus Logic ep93xx ethernet driver r8169: the MMIO region of the 8167 stands behin BAR#1 e1000, ixgb: Remove pointless wrappers [PATCH] Remove powerpc specific parts of 3c509 driver [PATCH] s2io: Switch to pci_get_device [PATCH] gt96100: move to pci_get_device API [PATCH] ehea: bugfix for register access functions [PATCH] e1000 disable device on PCI error drivers/net/phy/fixed: #if 0 some incomplete code drivers/net: const-ify ethtool_ops declarations [PATCH] ethtool: allow const ethtool_ops [PATCH] sky2: big endian [PATCH] sky2: fiber support [PATCH] sky2: tx pause bug fix drivers/net: Trim trailing whitespace [PATCH] ehea: IBM eHEA Ethernet Device Driver ... Manually resolved conflicts in drivers/net/ixgb/ixgb_main.c and drivers/net/sky2.c related to CHECKSUM_HW/CHECKSUM_PARTIAL changes by commit 84fa7933a33f806bbbaae6775e87459b1ec584c0 that just happened to be next to unrelated changes in this update.
Diffstat (limited to 'net/core')
-rw-r--r--net/core/ethtool.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c
index 2797e281541..e0ca04f38ce 100644
--- a/net/core/ethtool.c
+++ b/net/core/ethtool.c
@@ -143,7 +143,7 @@ static int ethtool_set_settings(struct net_device *dev, void __user *useraddr)
143static int ethtool_get_drvinfo(struct net_device *dev, void __user *useraddr) 143static int ethtool_get_drvinfo(struct net_device *dev, void __user *useraddr)
144{ 144{
145 struct ethtool_drvinfo info; 145 struct ethtool_drvinfo info;
146 struct ethtool_ops *ops = dev->ethtool_ops; 146 const struct ethtool_ops *ops = dev->ethtool_ops;
147 147
148 if (!ops->get_drvinfo) 148 if (!ops->get_drvinfo)
149 return -EOPNOTSUPP; 149 return -EOPNOTSUPP;
@@ -169,7 +169,7 @@ static int ethtool_get_drvinfo(struct net_device *dev, void __user *useraddr)
169static int ethtool_get_regs(struct net_device *dev, char __user *useraddr) 169static int ethtool_get_regs(struct net_device *dev, char __user *useraddr)
170{ 170{
171 struct ethtool_regs regs; 171 struct ethtool_regs regs;
172 struct ethtool_ops *ops = dev->ethtool_ops; 172 const struct ethtool_ops *ops = dev->ethtool_ops;
173 void *regbuf; 173 void *regbuf;
174 int reglen, ret; 174 int reglen, ret;
175 175
@@ -282,7 +282,7 @@ static int ethtool_get_link(struct net_device *dev, void __user *useraddr)
282static int ethtool_get_eeprom(struct net_device *dev, void __user *useraddr) 282static int ethtool_get_eeprom(struct net_device *dev, void __user *useraddr)
283{ 283{
284 struct ethtool_eeprom eeprom; 284 struct ethtool_eeprom eeprom;
285 struct ethtool_ops *ops = dev->ethtool_ops; 285 const struct ethtool_ops *ops = dev->ethtool_ops;
286 u8 *data; 286 u8 *data;
287 int ret; 287 int ret;
288 288
@@ -327,7 +327,7 @@ static int ethtool_get_eeprom(struct net_device *dev, void __user *useraddr)
327static int ethtool_set_eeprom(struct net_device *dev, void __user *useraddr) 327static int ethtool_set_eeprom(struct net_device *dev, void __user *useraddr)
328{ 328{
329 struct ethtool_eeprom eeprom; 329 struct ethtool_eeprom eeprom;
330 struct ethtool_ops *ops = dev->ethtool_ops; 330 const struct ethtool_ops *ops = dev->ethtool_ops;
331 u8 *data; 331 u8 *data;
332 int ret; 332 int ret;
333 333
@@ -640,7 +640,7 @@ static int ethtool_set_gso(struct net_device *dev, char __user *useraddr)
640static int ethtool_self_test(struct net_device *dev, char __user *useraddr) 640static int ethtool_self_test(struct net_device *dev, char __user *useraddr)
641{ 641{
642 struct ethtool_test test; 642 struct ethtool_test test;
643 struct ethtool_ops *ops = dev->ethtool_ops; 643 const struct ethtool_ops *ops = dev->ethtool_ops;
644 u64 *data; 644 u64 *data;
645 int ret; 645 int ret;
646 646
@@ -673,7 +673,7 @@ static int ethtool_self_test(struct net_device *dev, char __user *useraddr)
673static int ethtool_get_strings(struct net_device *dev, void __user *useraddr) 673static int ethtool_get_strings(struct net_device *dev, void __user *useraddr)
674{ 674{
675 struct ethtool_gstrings gstrings; 675 struct ethtool_gstrings gstrings;
676 struct ethtool_ops *ops = dev->ethtool_ops; 676 const struct ethtool_ops *ops = dev->ethtool_ops;
677 u8 *data; 677 u8 *data;
678 int ret; 678 int ret;
679 679
@@ -733,7 +733,7 @@ static int ethtool_phys_id(struct net_device *dev, void __user *useraddr)
733static int ethtool_get_stats(struct net_device *dev, void __user *useraddr) 733static int ethtool_get_stats(struct net_device *dev, void __user *useraddr)
734{ 734{
735 struct ethtool_stats stats; 735 struct ethtool_stats stats;
736 struct ethtool_ops *ops = dev->ethtool_ops; 736 const struct ethtool_ops *ops = dev->ethtool_ops;
737 u64 *data; 737 u64 *data;
738 int ret; 738 int ret;
739 739