net: pch_gbe: Make 64 bit safe
authorPaul Burton <paul.burton@imgtec.com>
Thu, 8 Sep 2016 06:47:34 +0000 (07:47 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 21 Sep 2016 13:04:32 +0000 (15:04 +0200)
commit96cb57c5ea1905c05435b42ac378938971b83766
tree462997b28e331f15e30ff2eb1fd11f3e403dea33
parent154bf12f78c012895e7b42f844b7b92c4f015509
net: pch_gbe: Make 64 bit safe

The pch_gbe driver previously casted pointers to & from unsigned 32 bit
integers in many locations. This breaks the driver on 64 bit systems,
producing streams of compiler warnings about mismatched pointer &
integer sizes and then failing to keep track of addresses correctly at
runtime.

Fix the driver for 64 bit systems by using unsigned longs in place of
the previously used 32 bit integers.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/pch_gbe.c