aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-09-17 06:03:26 -0400
committerDavid S. Miller <davem@davemloft.net>2012-09-19 16:35:22 -0400
commit6b6e27255f29a6191ef8ad96bfcc392ab2ef6c71 (patch)
treea5ccefbbb2862f3777b83eefd1d10a2f550345f8 /drivers
parent1d3ff76759b70e201e6b379c37ac106c487ff506 (diff)
netdev: make address const in device address management
The internal functions for add/deleting addresses don't change their argument. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c4
-rw-r--r--drivers/net/macvlan.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 2dc9d91e2b67..70d27a361857 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -6890,7 +6890,7 @@ static int ixgbe_set_features(struct net_device *netdev,
6890 6890
6891static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, 6891static int ixgbe_ndo_fdb_add(struct ndmsg *ndm,
6892 struct net_device *dev, 6892 struct net_device *dev,
6893 unsigned char *addr, 6893 const unsigned char *addr,
6894 u16 flags) 6894 u16 flags)
6895{ 6895{
6896 struct ixgbe_adapter *adapter = netdev_priv(dev); 6896 struct ixgbe_adapter *adapter = netdev_priv(dev);
@@ -6927,7 +6927,7 @@ static int ixgbe_ndo_fdb_add(struct ndmsg *ndm,
6927 6927
6928static int ixgbe_ndo_fdb_del(struct ndmsg *ndm, 6928static int ixgbe_ndo_fdb_del(struct ndmsg *ndm,
6929 struct net_device *dev, 6929 struct net_device *dev,
6930 unsigned char *addr) 6930 const unsigned char *addr)
6931{ 6931{
6932 struct ixgbe_adapter *adapter = netdev_priv(dev); 6932 struct ixgbe_adapter *adapter = netdev_priv(dev);
6933 int err = -EOPNOTSUPP; 6933 int err = -EOPNOTSUPP;
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 66a9bfe7b1c8..815dfcfbc7b9 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -548,7 +548,7 @@ static int macvlan_vlan_rx_kill_vid(struct net_device *dev,
548 548
549static int macvlan_fdb_add(struct ndmsg *ndm, 549static int macvlan_fdb_add(struct ndmsg *ndm,
550 struct net_device *dev, 550 struct net_device *dev,
551 unsigned char *addr, 551 const unsigned char *addr,
552 u16 flags) 552 u16 flags)
553{ 553{
554 struct macvlan_dev *vlan = netdev_priv(dev); 554 struct macvlan_dev *vlan = netdev_priv(dev);
@@ -567,7 +567,7 @@ static int macvlan_fdb_add(struct ndmsg *ndm,
567 567
568static int macvlan_fdb_del(struct ndmsg *ndm, 568static int macvlan_fdb_del(struct ndmsg *ndm,
569 struct net_device *dev, 569 struct net_device *dev,
570 unsigned char *addr) 570 const unsigned char *addr)
571{ 571{
572 struct macvlan_dev *vlan = netdev_priv(dev); 572 struct macvlan_dev *vlan = netdev_priv(dev);
573 int err = -EINVAL; 573 int err = -EINVAL;