]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix build of si with base gcc on i386
authordim <dim@FreeBSD.org>
Wed, 13 Jun 2018 20:33:52 +0000 (20:33 +0000)
committerdim <dim@FreeBSD.org>
Wed, 13 Jun 2018 20:33:52 +0000 (20:33 +0000)
commit599ca1c889f4a7975bf69f4749e94e627b0e7649
treeb21cedeb72a899df1cd13fe9b5bfdc9ca69ccc9c
parent667052415ebdbade0cd55a3c66b7902227a78760
Fix build of si 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
intermediate casts to uintptr_t to suppress these.

Direct commit to stable/11, since si(4) has been removed from head.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D15752
sys/dev/si/si_isa.c
sys/dev/si/si_pci.c