linux/drivers/net
Ben Hutchings 262e827fe7 cxgb3: Fix length calculation in write_ofld_wr() on 32-bit architectures
The length calculation here is now invalid on 32-bit architectures,
since sk_buff::tail is a pointer and sk_buff::transport_header is
an integer offset:

drivers/net/ethernet/chelsio/cxgb3/sge.c: In function 'write_ofld_wr':
drivers/net/ethernet/chelsio/cxgb3/sge.c:1603:9: warning: passing argument 4 of 'make_sgl' makes integer from pointer without a cast [enabled by default]
         adap->pdev);
         ^
drivers/net/ethernet/chelsio/cxgb3/sge.c:964:28: note: expected 'unsigned int' but argument is of type 'sk_buff_data_t'
 static inline unsigned int make_sgl(const struct sk_buff *skb,
                            ^

Use the appropriate skb accessor functions.

Compile-tested only.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Fixes: 1a37e412a0 ('net: Use 16bits for *_headers fields of struct skbuff')
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-10-29 00:14:03 -04:00
..
appletalk
arcnet
bonding
caif
can can: at91-can: fix device to driver data mapping for platform devices 2013-10-09 23:04:31 +02:00
cris
dsa
ethernet cxgb3: Fix length calculation in write_ofld_wr() on 32-bit architectures 2013-10-29 00:14:03 -04:00
fddi
hamradio yam: remove a no-op in yam_ioctl() 2013-10-17 15:53:09 -04:00
hippi
hyperv
ieee802154 mrf24j40: Use level-triggered interrupts 2013-10-08 15:32:14 -04:00
irda
phy
plip
ppp
slip
team
usb ax88179_178a: Remove AX_MEDIUM_ALWAYS_ONE bit in AX_MEDIUM_STATUS_MODE register to avoid TX throttling 2013-10-25 19:26:59 -04:00
vmxnet3
wan net: wan: sbni: remove assembly crc32 code 2013-10-25 19:26:58 -04:00
wimax
wireless mwifiex: inform cfg80211 about disconnect for P2P client interface 2013-10-14 13:24:26 -04:00
xen-netback xen-netback: transition to CLOSED when removing a VIF 2013-10-08 16:15:51 -04:00
dummy.c
eql.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c netconsole: fix multiple race conditions 2013-10-25 19:26:58 -04:00
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tun: don't look at current when non-blocking 2013-10-08 15:38:35 -04:00
veth.c
virtio_net.c virtio-net: refill only when device is up during setting queues 2013-10-17 15:53:09 -04:00
vxlan.c
xen-netfront.c