diff options
| author | bouyer <bouyer@NetBSD.org> | 2017-12-10 18:52:41 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2017-12-10 18:52:41 +0000 |
| commit | b4014e03c7d012b0734c6d8fcdafe0a7958ae2fe (patch) | |
| tree | 5c98deac84cd81351671026c29fce5a4a0f6435e /sys/dev/acpi | |
| parent | b72385dd84fa829dca15fbafe83aba861c39637a (diff) | |
Cast to uintptr_t before casting to void *; fix a warning on i386
Diffstat (limited to 'sys/dev/acpi')
| -rw-r--r-- | sys/dev/acpi/acpi_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpi_util.c b/sys/dev/acpi/acpi_util.c index 96ab0c1cef7..0ca7e72f836 100644 --- a/sys/dev/acpi/acpi_util.c +++ b/sys/dev/acpi/acpi_util.c @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_util.c,v 1.9 2017/12/10 16:51:30 bouyer Exp $ */ +/* $NetBSD: acpi_util.c,v 1.10 2017/12/10 18:52:41 bouyer Exp $ */ /*- * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc. @@ -65,7 +65,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_util.c,v 1.9 2017/12/10 16:51:30 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_util.c,v 1.10 2017/12/10 18:52:41 bouyer Exp $"); #include <sys/param.h> #include <sys/kmem.h> @@ -520,7 +520,7 @@ acpi_intr_establish(device_t dev, uint64_t c, unsigned int (*intr)(void *), void *iarg) { ACPI_STATUS rv; - ACPI_HANDLE hdl = (void *)c; + ACPI_HANDLE hdl = (void *)(uintptr_t)c; struct acpi_resources res; struct acpi_irq *irq; struct acpi_irq_handler *aih = NULL; |
