Fix build of ndis with base gcc on i386
authordim <dim@FreeBSD.org>
Sun, 17 Jun 2018 19:24:40 +0000 (19:24 +0000)
committerdim <dim@FreeBSD.org>
Sun, 17 Jun 2018 19:24:40 +0000 (19:24 +0000)
commit4c5756cf390d34a1ef6b1506a841f4427cc0c58a
tree1998c1e433ceb15f5435789f9487964eed5d99a7
parent168b66fe62c634b63ec18f011b90671c7ee1c2b1
Fix build of ndis with base gcc on i386

Casting from rman_res_t to a pointer results in "cast to pointer from
integer of different size" warnings with base gcc on i386, so use an
intermediate cast to uintptr_t to suppress it.  In this case, the I/O
port range is effectively limited to the range of 0..65535.

Reviewed by: imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D15746
sys/compat/ndis/subr_ndis.c