[PATCH] net/pasemi: fix compiler warning

David Miller davem at davemloft.net
Thu May 3 10:53:12 EST 2012


From: Stephen Rothwell <sfr at canb.auug.org.au>
Date: Thu, 3 May 2012 10:51:46 +1000

> 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 at lixom.net>
> Cc: Pradeep A. Dalvi <netdev at pradeepdalvi.com>
> Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>

Applied, thanks.


More information about the Linuxppc-dev mailing list