]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix build of aibs with base gcc on i386
authordim <dim@FreeBSD.org>
Sun, 17 Jun 2018 19:14:05 +0000 (19:14 +0000)
committerdim <dim@FreeBSD.org>
Sun, 17 Jun 2018 19:14:05 +0000 (19:14 +0000)
commit168b66fe62c634b63ec18f011b90671c7ee1c2b1
tree688549f0c7146892a3092d53e51b7285efb453c8
parentb8e5f9834249b6720a08af0acbbc622243bc7062
Fix build of aibs with base gcc on i386

Add a few intermediate casts to intptr_t to suppress "cast to pointer
from integer of different size" warnings from gcc.  In this case, the
'arg2' part of SYSCTL_HANDLER_ARGS is used to pass in a pointer, via an
intermediate intmax_t, so no information is lost.

Reviewed by: avg
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D15725
sys/dev/acpi_support/atk0110.c