]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r335297:
authordim <dim@FreeBSD.org>
Thu, 21 Jun 2018 09:45:03 +0000 (09:45 +0000)
committerdim <dim@FreeBSD.org>
Thu, 21 Jun 2018 09:45:03 +0000 (09:45 +0000)
commit852d477e91615033ae0d6625e966a0c0c48436cb
treeb2011b6d5080baac4eb6e4a06f81b9385a1a5fbc
parent5803ec9ef744763f4b0c83c0dc8439cc9f2beccf
MFC r335297:

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
Differential Revision: https://reviews.freebsd.org/D15746
sys/compat/ndis/subr_ndis.c