]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/pasemi: fix compiler warning
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 00:51:46 +0000 (10:51 +1000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 May 2012 00:52:48 +0000 (20:52 -0400)
commit5c6239c8f89f301c47e96bf9d2931c446b934be0
tree8aaefd52e06ed4c791cceccd65eed1bb8e27e07a
parent69c326b38f2f895ca4f09fd9b65782a021f4ba6c
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>
drivers/net/ethernet/pasemi/pasemi_mac.c