diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2012-05-03 02:51:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-03 02:52:48 +0200 |
commit | 5c6239c8f89f301c47e96bf9d2931c446b934be0 (patch) | |
tree | 8aaefd52e06ed4c791cceccd65eed1bb8e27e07a /drivers/net/ethernet/pasemi | |
parent | bnx2x: fix handling single MSIX mode for 57710/57711 (diff) | |
download | linux-5c6239c8f89f301c47e96bf9d2931c446b934be0.tar.xz linux-5c6239c8f89f301c47e96bf9d2931c446b934be0.zip |
net/pasemi: fix compiler warning
Fix this compiler warning (on PowerPC) by not marking a parameter as
const:
drivers/net/ethernet/pasemi/pasemi_mac.c: In function 'pasemi_mac_replenish_rx_ring':
drivers/net/ethernet/pasemi/pasemi_mac.c:646:3: warning: passing argument 1 of 'netdev_alloc_skb' discards qualifiers from pointer target type
include/linux/skbuff.h:1706:31: note: expected 'struct net_device *' but argument is of type 'const struct net_device *'
Cc: Olof Johansson <olof@lixom.net>
Cc: Pradeep A. Dalvi <netdev@pradeepdalvi.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pasemi')
-rw-r--r-- | drivers/net/ethernet/pasemi/pasemi_mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/pasemi/pasemi_mac.c b/drivers/net/ethernet/pasemi/pasemi_mac.c index ddc95b0ac78d..e559dfa06d6a 100644 --- a/drivers/net/ethernet/pasemi/pasemi_mac.c +++ b/drivers/net/ethernet/pasemi/pasemi_mac.c @@ -623,7 +623,7 @@ static void pasemi_mac_free_rx_resources(struct pasemi_mac *mac) mac->rx = NULL; } -static void pasemi_mac_replenish_rx_ring(const struct net_device *dev, +static void pasemi_mac_replenish_rx_ring(struct net_device *dev, const int limit) { const struct pasemi_mac *mac = netdev_priv(dev); |