diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-09-17 12:03:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-19 22:35:22 +0200 |
commit | 6b6e27255f29a6191ef8ad96bfcc392ab2ef6c71 (patch) | |
tree | a5ccefbbb2862f3777b83eefd1d10a2f550345f8 /drivers/net/macvlan.c | |
parent | i825xx: znet: fix compiler warnings when building a 64-bit kernel (diff) | |
download | linux-6b6e27255f29a6191ef8ad96bfcc392ab2ef6c71.tar.xz linux-6b6e27255f29a6191ef8ad96bfcc392ab2ef6c71.zip |
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/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, static int macvlan_fdb_add(struct ndmsg *ndm, struct net_device *dev, - unsigned char *addr, + const unsigned char *addr, u16 flags) { struct macvlan_dev *vlan = netdev_priv(dev); @@ -567,7 +567,7 @@ static int macvlan_fdb_add(struct ndmsg *ndm, static int macvlan_fdb_del(struct ndmsg *ndm, struct net_device *dev, - unsigned char *addr) + const unsigned char *addr) { struct macvlan_dev *vlan = netdev_priv(dev); int err = -EINVAL; |