Author: dim Date: Thu Jun 21 09:41:44 2018 New Revision: 335471 URL: https://svnweb.freebsd.org/changeset/base/335471
Log: MFC r335296: 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 Differential Revision: https://reviews.freebsd.org/D15725 Modified: stable/11/sys/dev/acpi_support/atk0110.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/acpi_support/atk0110.c ============================================================================== --- stable/11/sys/dev/acpi_support/atk0110.c Thu Jun 21 08:19:11 2018 (r335470) +++ stable/11/sys/dev/acpi_support/atk0110.c Thu Jun 21 09:41:44 2018 (r335471) @@ -453,7 +453,7 @@ static int aibs_sysctl(SYSCTL_HANDLER_ARGS) { struct aibs_softc *sc = arg1; - struct aibs_sensor *sensor = (void *)arg2; + struct aibs_sensor *sensor = (void *)(intptr_t)arg2; int i = oidp->oid_number; ACPI_STATUS rs; ACPI_OBJECT p, *bp; @@ -519,7 +519,7 @@ static int aibs_sysctl_ggrp(SYSCTL_HANDLER_ARGS) { struct aibs_softc *sc = arg1; - struct aibs_sensor *sensor = (void *)arg2; + struct aibs_sensor *sensor = (void *)(intptr_t)arg2; ACPI_STATUS rs; ACPI_OBJECT p, *bp; ACPI_OBJECT_LIST arg; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"