Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35331
b: refs/heads/master
c: 76fd859
h: refs/heads/master
i:
  35329: 0c8eae4
  35327: b57adbb
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Sep 13, 2006
1 parent 6638be1 commit a7386e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f65b138ca94326bbffe06ddc28e65606a249e58e
refs/heads/master: 76fd85937097a0c2ec8ab23bf21dc10992d1c398
2 changes: 1 addition & 1 deletion trunk/include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ struct net_device
/* Instance data managed by the core of Wireless Extensions. */
struct iw_public_data * wireless_data;

struct ethtool_ops *ethtool_ops;
const struct ethtool_ops *ethtool_ops;

/*
* This marks the end of the "visible" part of the structure. All
Expand Down
14 changes: 7 additions & 7 deletions trunk/net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static int ethtool_set_settings(struct net_device *dev, void __user *useraddr)
static int ethtool_get_drvinfo(struct net_device *dev, void __user *useraddr)
{
struct ethtool_drvinfo info;
struct ethtool_ops *ops = dev->ethtool_ops;
const struct ethtool_ops *ops = dev->ethtool_ops;

if (!ops->get_drvinfo)
return -EOPNOTSUPP;
Expand All @@ -169,7 +169,7 @@ static int ethtool_get_drvinfo(struct net_device *dev, void __user *useraddr)
static int ethtool_get_regs(struct net_device *dev, char __user *useraddr)
{
struct ethtool_regs regs;
struct ethtool_ops *ops = dev->ethtool_ops;
const struct ethtool_ops *ops = dev->ethtool_ops;
void *regbuf;
int reglen, ret;

Expand Down Expand Up @@ -282,7 +282,7 @@ static int ethtool_get_link(struct net_device *dev, void __user *useraddr)
static int ethtool_get_eeprom(struct net_device *dev, void __user *useraddr)
{
struct ethtool_eeprom eeprom;
struct ethtool_ops *ops = dev->ethtool_ops;
const struct ethtool_ops *ops = dev->ethtool_ops;
u8 *data;
int ret;

Expand Down Expand Up @@ -327,7 +327,7 @@ static int ethtool_get_eeprom(struct net_device *dev, void __user *useraddr)
static int ethtool_set_eeprom(struct net_device *dev, void __user *useraddr)
{
struct ethtool_eeprom eeprom;
struct ethtool_ops *ops = dev->ethtool_ops;
const struct ethtool_ops *ops = dev->ethtool_ops;
u8 *data;
int ret;

Expand Down Expand Up @@ -640,7 +640,7 @@ static int ethtool_set_gso(struct net_device *dev, char __user *useraddr)
static int ethtool_self_test(struct net_device *dev, char __user *useraddr)
{
struct ethtool_test test;
struct ethtool_ops *ops = dev->ethtool_ops;
const struct ethtool_ops *ops = dev->ethtool_ops;
u64 *data;
int ret;

Expand Down Expand Up @@ -673,7 +673,7 @@ static int ethtool_self_test(struct net_device *dev, char __user *useraddr)
static int ethtool_get_strings(struct net_device *dev, void __user *useraddr)
{
struct ethtool_gstrings gstrings;
struct ethtool_ops *ops = dev->ethtool_ops;
const struct ethtool_ops *ops = dev->ethtool_ops;
u8 *data;
int ret;

Expand Down Expand Up @@ -733,7 +733,7 @@ static int ethtool_phys_id(struct net_device *dev, void __user *useraddr)
static int ethtool_get_stats(struct net_device *dev, void __user *useraddr)
{
struct ethtool_stats stats;
struct ethtool_ops *ops = dev->ethtool_ops;
const struct ethtool_ops *ops = dev->ethtool_ops;
u64 *data;
int ret;

Expand Down

0 comments on commit a7386e2

Please sign in to comment.