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
This commit is contained in:
parent
250d25d535
commit
a1e2190c98
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user